このメソッドを呼び出すことは、ペインのキャプション領域にある"X"ボタンをクリックすることに相当します。
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinDock Private Sub btnHideAll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnHideAll.Click ' There are several options for hiding/closing panes ' You can close a particular control pane. Setting the closed ' property has the same affect in this case. ' Me.ultraDockManager1.PaneFromControl(Me.UltraDayView1).Closed = True Me.ultraDockManager1.ControlPanes("treeSolutions").Close() ' You can close a particular group. Calling the parameterless ' overload is equivalent to calling the following: ' Me.ultraDockManager1.DockAreas(0).Close(false) ' which indicates that only the specified pane's 'Closed' property ' should be set. If true is specified, the 'Closed' property ' of all the children/descendants of the pane is also set ' to true. Me.ultraDockManager1.DockAreas(0).Close() ' The following goes through and sets the 'Closed' property 'of all panes to false Me.ultraDockManager1.HideAll() End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinDock; using System.Diagnostics; private void btnHideAll_Click(object sender, System.EventArgs e) { // There are several options for hiding/closing panes // You can close a particular control pane. Setting the closed // property has the same affect in this case. // this.ultraDockManager1.PaneFromControl(this.ultraDayView1).Closed = true; this.ultraDockManager1.ControlPanes["treeSolutions"].Close(); // You can close a particular group. Calling the parameterless // overload is equivalent to calling the following: // this.ultraDockManager1.DockAreas[0].Close(false); // which indicates that only the specified pane's 'Closed' property // should be set. If true is specified, the 'Closed' property // of all the children/descendants of the pane is also set // to true. this.ultraDockManager1.DockAreas[0].Close(); // The following goes through and sets the 'Closed' property //of all panes to false this.ultraDockManager1.HideAll(); }