Xceed Grid for WinForms v4.3 Documentation
GetPreferredWidth Method (ISupportIntegralResizing)


Xceed.Editors.v2.6 Assembly > Xceed.Editors Namespace > ISupportIntegralResizing Interface : GetPreferredWidth Method
The total available width.
Returns the width required to fit the maximum number of items within the specified width.
Syntax
'Declaration
 
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<BrowsableAttribute(False)>
<DefaultValueAttribute(False)>
Function GetPreferredWidth( _
   ByVal width As Integer _
) As Integer
'Usage
 
Dim instance As ISupportIntegralResizing
Dim width As Integer
Dim value As Integer
 
value = instance.GetPreferredWidth(width)
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[Browsable(false)]
[DefaultValue(false)]
int GetPreferredWidth( 
   int width
)

Parameters

width
The total available width.

Return Value

A value representing the width required to fit the maximum number of items.
Remarks

If the specified width can fit 2 items and there is not enough space to fit a 3rd one, then GetPreferredWidth will return the width necessary to fit 2 items.

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

ISupportIntegralResizing Interface
ISupportIntegralResizing Members