Xceed Grid for WinForms v4.3 Documentation
DefaultAutoSizeMode Property


Xceed.Editors.v2.6 Assembly > Xceed.Editors Namespace > WinButton Class : DefaultAutoSizeMode Property
Gets the default value of the AutoSizeMode property.
Syntax
'Declaration
 
Protected Overridable ReadOnly Property DefaultAutoSizeMode As AutoSizeMode
'Usage
 
Dim instance As WinButton

Dim value As AutoSizeMode

 

value = instance.DefaultAutoSizeMode
protected virtual AutoSizeMode DefaultAutoSizeMode {get;}

Property Value

An AutoSizeMode value representing the default value of the AutoSizeMode property. Unless overridden, AutoSizeMode.None.
Remarks

The AutoSizeMode property indicates if the size of the WinButton control should automatically be adjusted according to specific system defined values. If set to AutoSizeMode.None (default), the size of the WinButton control will be determined by its Width and Height properties. If set to AutoSizeMode.ScrollBarWidth, the width will automatically be adjusted to correspond to the scrollbar width defined by SystemInformation.VerticalScrollBarWidth. If set to AutoSizeMode.ScrollBarHeight, the height will automatically be adjusted to correspond to the scrollbar height defined by SystemInformation.HorizontalScrollBarHeight. If set to AutoSizeMode.ScrollBarWidthAndHeight, both the width and the height will be adjusted.

If the WinButton control is part of the SideButtons collection of a WinTextBox (or derived) control, and is assigned as the WinTextBox control's DropDownButton, the default value of the AutoSizeMode property will be AutoSizeMode.ScrollBarWidth.

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

WinButton Class
WinButton Members