Xceed Grid for WinForms v4.3 Documentation
MaxWidth Property


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > Column Class : MaxWidth Property
Gets or sets the maximum width of the column, in pixels.
Syntax
'Declaration
 
<DescriptionAttribute("The maximum width of the column, in pixels.")>

<CategoryAttribute("Behavior")>

<RefreshPropertiesAttribute(RefreshProperties.All)>

<AmbientValueAttribute(-2147483648)>

<LocalizableAttribute(True)>

<ApplyToDesignerAttribute(True)>

Public Property MaxWidth As Integer
'Usage
 
Dim instance As Column

Dim value As Integer

 

instance.MaxWidth = value

 

value = instance.MaxWidth
[Description("The maximum width of the column, in pixels.")]

[Category("Behavior")]

[RefreshProperties(RefreshProperties.All)]

[AmbientValue(-2147483648)]

[Localizable(true)]

[ApplyToDesigner(true)]

public int MaxWidth {get; set;}

Property Value

A value indicating the maximum width of the column. Must be at least 0 and greater than MinWidth. If -1, then the column does not have a maximum width.
Remarks

To reset the value of the MaxWidth property to its default value, DefaultMaxWidth, the ResetMaxWidth method must be called.

If the value of the MaxWidth property becomes smaller than the value of the MinWidth property, then MinWidth will become equal to MaxWidth. If the value of the Width property becomes larger than MaxWidth, then Width will become equal to MaxWidth.
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

Reference

Column Class
Column Members
ResetMaxWidth Method
DefaultMaxWidth Property