Version

SizeOverride Property

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

Note: this setting may be ignored if a synchronized 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