Version

GetLogicalControlHeight Method

Returns the height needed by the control to display all Groups plus all the Items in every currently expanded Group.
Syntax
'Declaration
 
Public Function GetLogicalControlHeight() As Integer
public int GetLogicalControlHeight()

Return Value

The logical control height.
Remarks

This method is used to obtain the "logical height" of the UltraExplorerBar. The actual height of the control can be accessed via the System.Windows.Forms.Control.Height property. This method returns the height needed to have all of the expanded groups and their items be in view.

A common use of this information is to set the control's Height to the logical control height so that a scrollbar is never needed. For example, if the control's Style property is set to '0 - ExplorerBar' or '4 - VisualStudio2005Toolbox' and in response to the GroupExpanded and GroupCollapsed events you set the control's Height to the control's logical height, the control would "auto-size" to fit the groups.

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