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


Xceed.Editors.v2.6 Assembly > Xceed.Editors Namespace > WinCalendar Class : GetPreferredHeight(Int32) Method
The total available height.
Returns the height required to fit the maximum number of calendar months within the specified height.
Syntax
'Declaration
 
Public Function GetPreferredHeight( _

   ByVal height As Integer _

) As Integer
'Usage
 
Dim instance As WinCalendar

Dim height As Integer

Dim value As Integer

 

value = instance.GetPreferredHeight(height)
public int GetPreferredHeight( 

   int height

)

Parameters

height
The total available height.

Return Value

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

If the specified height can fit 2 calendar months and there is not enough space to fit a 3rd one, then GetPreferredHeight will return the height 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