Version

AutoSize Property (UltraNavigationBar)

Gets/sets a value indicating whether the height of the control automatically adjusts when the value of properties which affect its ideal height change.
Syntax
'Declaration
 
Public Overrides Property AutoSize As Boolean
public override bool AutoSize {get; set;}
Remarks

When the AutoSize property is set to true, the control's height cannot be modified.

The calculated height is based on the largest font size assigned for the UltraNavigationBarLocation instances associated with the control; the appearances returned from the control's LocationSettings property, as well as the control's main Appearance, are factored in, as is the control's Font, but appearances returned from the UltraNavigationBarLocation.Settings property of individual locations are not observed. This is to ensure that the height of all UltraNavigationBarLocation user interface elements is consistent.

The value of the ImageSize property is also evaluated when determining the control's height; if the Height component of the ImageSize is larger than the graphical height of the resolved appearance's font, the control's height is increased accordingly.

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