Version

PreferredSizeOverride Property

Gets/sets an explicit size to be returned as the item's preferred size.
Syntax
'Declaration
 
Protected Friend Property PreferredSizeOverride As Nullable(Of Size)
protected internal Nullable<Size> PreferredSizeOverride {get; set;}
Remarks

Note: this setting may be ignored if a syncronized size is being used. Otherwise, if this property returns a width and/or height > 0 it will take precedence over all other settings but only when the item's state is normal.

Requirements

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