'宣言 Public Function GetDockWidth( _ ByVal dockArea As DockedPosition _ ) As Integer
public int GetDockWidth( DockedPosition dockArea )
例外 | 解説 |
---|---|
System.ArgumentException | dockArea が フローティングです。 |
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 ' 各ドック領域のサイズを取得します 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) { // 各ドック領域のサイズを取得します 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()); }