Version

GetDockHeight Method

Gets the height of the specified docking area.
Syntax
'Declaration
 
Public Function GetDockHeight( _
   ByVal dockArea As DockedPosition _
) As Integer
public int GetDockHeight( 
   DockedPosition dockArea
)

Parameters

dockArea
A value representing the dock area to get the height of.

Return Value

The height, in pixels, of the specified dock area.
Exceptions
ExceptionDescription
System.ArgumentExceptiondockArea is Floating.
Example
The following code demonstrates how to get the size of each Dock Area.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolbars

	Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click

		' Get the size of each dock area.
		Debug.WriteLine("Top dock area size: " + Me.UltraToolbarsManager1.GetDockWidth(DockedPosition.Top).ToString() + "," + Me.UltraToolbarsManager1.GetDockHeight(DockedPosition.Top).ToString())
		Debug.WriteLine("Bottom dock area size: " + Me.UltraToolbarsManager1.GetDockWidth(DockedPosition.Bottom).ToString() + "," + Me.UltraToolbarsManager1.GetDockHeight(DockedPosition.Bottom).ToString())
		Debug.WriteLine("Left dock area size: " + Me.UltraToolbarsManager1.GetDockWidth(DockedPosition.Left).ToString() + "," + Me.UltraToolbarsManager1.GetDockHeight(DockedPosition.Left).ToString())
		Debug.WriteLine("Right dock area size: " + Me.UltraToolbarsManager1.GetDockWidth(DockedPosition.Right).ToString() + "," + Me.UltraToolbarsManager1.GetDockHeight(DockedPosition.Right).ToString())

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinToolbars;

		private void button14_Click(object sender, System.EventArgs e)
		{

			// Get the size of each dock area.
			Debug.WriteLine("Top dock area size: " + this.ultraToolbarsManager1.GetDockWidth(DockedPosition.Top).ToString() + "," + this.ultraToolbarsManager1.GetDockHeight(DockedPosition.Top).ToString());
			Debug.WriteLine("Bottom dock area size: " + this.ultraToolbarsManager1.GetDockWidth(DockedPosition.Bottom).ToString() + "," + this.ultraToolbarsManager1.GetDockHeight(DockedPosition.Bottom).ToString());
			Debug.WriteLine("Left dock area size: " + this.ultraToolbarsManager1.GetDockWidth(DockedPosition.Left).ToString() + "," + this.ultraToolbarsManager1.GetDockHeight(DockedPosition.Left).ToString());
			Debug.WriteLine("Right dock area size: " + this.ultraToolbarsManager1.GetDockWidth(DockedPosition.Right).ToString() + "," + this.ultraToolbarsManager1.GetDockHeight(DockedPosition.Right).ToString());

		}
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