'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;}
'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;}
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.
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