Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid Namespace / Column Class / MinWidth Property


In This Topic
    MinWidth Property
    In This Topic
    Gets or sets the minimum width of the column, in pixels.
    Syntax
    'Declaration
     
    <DescriptionAttribute("The minimum width of the column, in pixels.")>
    <CategoryAttribute("Behavior")>
    <RefreshPropertiesAttribute(RefreshProperties.All)>
    <AmbientValueAttribute(-2147483648)>
    <LocalizableAttribute(True)>
    <ApplyToDesignerAttribute(True)>
    Public Property MinWidth As Integer
    'Usage
     
    Dim instance As Column
    Dim value As Integer
     
    instance.MinWidth = value
     
    value = instance.MinWidth
    [Description("The minimum width of the column, in pixels.")]
    [Category("Behavior")]
    [RefreshProperties(RefreshProperties.All)]
    [AmbientValue(-2147483648)]
    [Localizable(true)]
    [ApplyToDesigner(true)]
    public int MinWidth {get; set;}

    Property Value

    A value indicating the minimum width of the column. Must be at least 0 and less than MaxWidth.
    Remarks

    To reset the value of the MinWidth property to its default value, DefaultMinWidth, the ResetMinWidth method must be called.

    If the value of the MinWidth property becomes larger than the value of the MaxWidth property, then MaxWidth will become equal to MinWidth. If the value of the Width property becomes smaller than MinWidth, then Width will become equal to MinWidth.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also