Method ToggleFloating
| Improve this Doc View SourceToggleFloating()
Toggles the floating state of the DockItem, as activated.
Declaration
public bool ToggleFloating()
Returns
Type | Description |
---|---|
System.Boolean | true if operation performed successfully, otherwise false. |
Remarks
A DockItem object can contained by two DockPane objects, one for floating mode and one for non floating mode. The FirstPane property always returns the DockPane that the DockItem last shown. Calling ToggleFloating() swaps FirstPane and SecondPane if they both exist.
This method is a wrapper of ToggleFloating(DockItemShowMethod) method using Activate value.
ToggleFloating(DockItemShowMethod)
Toggles the floating state of the DockItem, using specified show method.
Declaration
public bool ToggleFloating(DockItemShowMethod showMethod)
Parameters
Type | Name | Description |
---|---|---|
DockItemShowMethod | showMethod | The specified show method. |
Returns
Type | Description |
---|---|
System.Boolean | true if operation performed successfully, otherwise false. |
Remarks
A DockItem object can contained by two DockPane objects, one for floating mode and one for non floating mode. The FirstPane property always returns the DockPane that the DockItem last shown. Calling ToggleFloating() swaps FirstPane and SecondPane if they both exist.