'宣言 Public Overloads Sub Float( _ ByVal maintainPreviousState As Boolean _ )
public void Float( bool maintainPreviousState )
ペインが以前のフローティング位置(ある場合)に返すか、新しいフローティング ウィンドウに配置すべきかを指定できます。
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinDock Private Sub btnFloatGroup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFloatGroup.Click ' Get the group that we will float Dim group As DockableGroupPane = Me.ultraDockManager1.DockAreas(0) ' If its already floating, there's nothing to do If group.DockedState = DockedState.Floating Then Return ' Make sure there's something to float If Not group.IsVisible Then Return ' Float the contents of the group. passing true would mean ' that the control pane descendants should be displayed in the ' floating dock area that previously contained then if they ' had been previously floated. by passing false we are telling ' the dock manager that the previous state should be ignore and ' that a new dockarea should be created to contain these ' control panes group.Float(False) End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinDock; using System.Diagnostics; private void btnFloatGroup_Click(object sender, System.EventArgs e) { // Get the group that we will float DockableGroupPane group = this.ultraDockManager1.DockAreas[0]; // If its already floating, there//s nothing to do if (group.DockedState == DockedState.Floating) return; // Make sure there's something to float if (!group.IsVisible) return; // Float the contents of the group. passing true would mean // that the control pane descendants should be displayed in the // floating dock area that previously contained then if they // had been previously floated. by passing false we are telling // the dock manager that the previous state should be ignore and // that a new dockarea should be created to contain these // control panes group.Float(false); }