Version

AutoSize Property

Determines whether the control automatically sizes based on the font of the control.
Syntax
'Declaration
 
Public Overrides Property AutoSize As Boolean
public override bool AutoSize {get; set;}
Remarks

The default value for this property is true. When set to true, the control's height cannot be changed. Instead the height is based on the resolved font for the control.

Example
This example disables autosizing, and sets the control's height to the specified value.

Private Sub SetHeight(ByVal height As Integer)

    '	When the AutoSize property is true, attempts to set the control's
    '	Height property will be ignored, so set AutoSize to false.
    Me.ultraCalendarCombo1.AutoSize = False


    '	Now set the height
    Me.ultraCalendarCombo1.Height = height

End Sub
private void SetHeight( int height )
{

	//	When the AutoSize property is true, attempts to set the control's
	//	Height property will be ignored, so set AutoSize to false.
	this.ultraCalendarCombo1.AutoSize = false;


	//	Now set the height
	this.ultraCalendarCombo1.Height = height;

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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