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


Xceed.Editors.v2.6 Assembly > Xceed.Editors Namespace > WinCalendar Class : GetPreferredWidth(Int32) Method
The total available width.
Returns the width required to fit the maximum number of calendar months within the specified width.
Syntax
'Declaration
 
Public Function GetPreferredWidth( _
   ByVal width As Integer _
) As Integer
'Usage
 
Dim instance As WinCalendar
Dim width As Integer
Dim value As Integer
 
value = instance.GetPreferredWidth(width)
public int GetPreferredWidth( 
   int width
)

Parameters

width
The total available width.

Return Value

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

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

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

WinCalendar Class
WinCalendar Members