Provides a manager for controlling dock objects.
- Inheritance:
-
object
Marshal
By Component objectRef Object
- Implements:
-
IDisposable
IDock
Object IWeakEvent Listener
Constructors
DockManager()
Initializes a new instance of the DockManager
class.
Remarks
The default constructor initializes all fields to their default values.
DockManager(IContainer)
Initializes a new instance of the DockManager
class.
Parameter | Type | Description |
---|---|---|
container | IContainer | An IContainer that represents the container for the component. |
Properties
ActiveDocuments
Gets the collection of active Tabbed
Property Value
- Tabbed
Mdi :Window Collection A Document
Window containing the collection of active TabbedCollection Mdi controls in the MDI area.Window
AutoCreateToolWindowsForLayoutLoad
Gets or sets whether to automatically create tool windows specified in a tool window layout that don't exist when the layout is loaded.
Property Value
- bool:
true
if tool windows should be automatically created; otherwise,false
.
AutoHideButtonAffectsSelectedTabOnly
Gets or sets whether the pressing of the auto-hide button affects the selected tab only.
Property Value
- bool:
true
if the pressing of the auto-hide button affects the selected tab only; otherwise,false
.
AutoHideCloseDelay
Gets or sets the delay (in milliseconds) to leave a visible auto-hide window open when the mouse moves away from it.
Property Value
- int:
The delay (in milliseconds) to leave a visible auto-hide window open when the mouse moves away from it. The default value is
1000
milliseconds, or1
second.
AutoHideCommand
Gets the Command that is used for auto-hide.
AutoHideHideSteps
Gets or sets the number of steps to use for animation when hiding auto-hide tool windows.
Property Value
- int:
The number of steps to use for animation when hiding auto-hide tool windows. The default value is
10
.
Remarks
Set this value to 1
for instantaneous hiding.
AutoHideShowOnMouseHover
Gets or sets whether to show auto-hidden tool windows when the mouse hovers over their tabs.
Property Value
- bool:
true
if auto-hidden tool windows should be displayed when the mouse hovers over their tabs; otherwise,false
.
Remarks
When this property is false
, the user must click on a tab to display its related tool window.
Clicking on the tab again while the tool window is displayed will close the flyout.
AutoHideShowSteps
Gets or sets the number of steps to use for animation when showing auto-hide tool windows.
Property Value
- int:
The number of steps to use for animation when showing auto-hide tool windows. The default value is
10
.
Remarks
Set this value to 1
for instantaneous showing.
AutoHideTabStripPanelBottom
Gets the Auto
Property Value
- Auto
Hide :Tab Strip Panel The Auto
Hide that is currently in use for the bottom side of the host container, if any.Tab Strip Panel
AutoHideTabStripPanelLeft
Gets the Auto
Property Value
- Auto
Hide :Tab Strip Panel The Auto
Hide that is currently in use for the left side of the host container, if any.Tab Strip Panel
AutoHideTabStripPanelRight
Gets the Auto
Property Value
- Auto
Hide :Tab Strip Panel The Auto
Hide that is currently in use for the right side of the host container, if any.Tab Strip Panel
AutoHideTabStripPanelTop
Gets the Auto
Property Value
- Auto
Hide :Tab Strip Panel The Auto
Hide that is currently in use for the top side of the host container, if any.Tab Strip Panel
AutoSelectTabOnDragOver
Gets or sets whether to automatically select a Tabbed
Property Value
- bool:
true
if a TabbedMdi should be automatically selected when a drag operation is moved over its tab; otherwise,Window false
.
CloseButtonAffectsSelectedTabOnly
Gets or sets whether the pressing of the close button affects the selected tab only.
Property Value
- bool:
true
if the pressing of the close button affects the selected tab only; otherwise,false
.
CloseCommand
Gets the Command that is used for a close.
DefaultMdiWindowState
Gets or sets the default Form
Property Value
- Form
Window :State The default Form
Window to assign to MDI windows when they are created.State
DisposeDocumentWindowsAfterClose
Gets or sets whether to automatically dispose Document
Property Value
- bool:
true
if DocumentWindow objects should be automatically disposed after they are closed; otherwise,false
.
DockGuideStyle
Gets or sets a Dock
Property Value
- Dock
Guide :Style A Dock
Guide indicating the style of dock guides to use.Style
DockHintStyle
Gets or sets a Dock
Property Value
- Dock
Hint :Style A Dock
Hint indicating the style of docking hints to use.Style
DockObjectType
Gets a Dock
Property Value
- Dock
Object :Type A Dock
Object specifying the type of dock object.Type
DockRenderer
Gets or sets the IDock
Property Value
- IDock
Renderer : The IDock
Renderer used to render the dock controls.
DockRendererResolved
Gets the IDock
Property Value
- IDock
Renderer : The IDock
Renderer used to render the dock controls.
Remarks
This property will return a global renderer if there is no control instance renderer override.
The registered renderer type with the UIRendererManager
for this property is IDock
DocumentLayoutData
Gets or sets the current layout of all the documents in tabbed MDI managed by this Dock
Property Value
- XmlDocument:
An
XmlDocument
containing the layout data of the current tabbed MDI document layout.
Remarks
This property may throw an exception while loading if the layout data is invalid.
DocumentMdiStyle
Gets or sets the Document
Property Value
- Document
Mdi :Style The Document
Mdi indicating the type of MDI to use for documents.Style
DocumentWindows
Gets the collection of Document
Property Value
- Document
Window :Collection A Document
Window containing the collection of DocumentCollection Window controls being managed by this DockManager .
DocumentWindowsCanClose
Gets or sets the global setting for whether document windows can be closed.
Property Value
- bool:
true
if document windows can be closed; otherwise,false
.
Remarks
This setting only affects document windows whose CanDefaultableBoolean.Default
.
Any other setting on the document window instance overrides this global setting.
DocumentWindowsCanFloat
Gets or sets the global setting for whether document windows may be contained in a floating window.
Property Value
- bool:
true
if document windows may be contained in a floating window; otherwise,false
.
Remarks
This setting only affects document windows whose CanDefaultableBoolean.Default
.
Any other setting on the tool window instance overrides this global setting.
FocusedTabbedMdiWindow
Gets the Tabbed
Property Value
- Tabbed
Mdi :Window The Tabbed
Mdi that currently contains the focus.Window
A null reference is returned if no window currently has the focus.
FocusedToolWindow
Gets the Tool
Property Value
- Tool
Window : The Tool
Window that currently contains the focus.
A null reference is returned if no tool window currently has the focus.
HideAutoHideToolWindowsAfterStateChange
Gets or sets whether to hide auto-hide tool windows immediately after a state change.
Property Value
- bool:
true
if the auto-hide windows should be hidden; otherwise,false
.
HideUnfocusedAutoHideToolWindowsOnMouseLeave
Gets or sets whether to hide unfocused auto-hide tool windows that are displayed when the mouse leaves them.
Property Value
- bool:
true
if the unfocused auto-hide windows should be hidden; otherwise,false
.
HostContainerControl
Gets or sets the Container
Property Value
- Container
Control : The Container
Control that should be used as the topmost parent for docking.
IgnoreAutoHideMouseClicks
Gets or sets whether to ignore mouse clicks that would hide a displayed auto-hide window.
Property Value
- bool:
true
if mouse clicks outside a displayed auto-hide window should close it; otherwise,false
.
ImageList
Gets or sets the ImageList
used for item images.
Property Value
- Image
List : An
ImageList
. The default value is a null reference.
KeyboardNavigationEnabled
Gets or sets whether keyboard navigation is enabled when the Nextfalse
.
Property Value
- bool:
true
if keyboard navigation is enabled when the NextWindow isNavigation Enabled false
; otherwise,false
.
Remarks
If Nextfalse
and keyboard navigation is enabled,
the Ctrl+Tab
and Ctrl+Shift+Tab
keys will switch documents.
MagnetismGapDistance
Gets or sets the distance between windows that are snapped together via magnetism.
Property Value
- int:
The distance between windows that are snapped together via magnetism. The default value is
1
.
Remarks
If this value is greater than 0
, there will be a gap between windows that are snapped together
when magnetism is enabled by the Magnetism
MagnetismSnapDistance
Gets or sets the distance at which magnetism begins to snap windows being dragged.
Property Value
- int:
The distance at which magnetism begins to snap windows being dragged. The default value is
5
.
Remarks
If this value is greater than 0
, magnetism is enabled. Set it to 0
to disable magnetism.
Magnetism tries to snap corners of a window being dragged to other window corners around it.
Increase this property's value to increase the range over which the magnetism will work.
Magnetism also takes effect when resizing via window borders.
MultipleTabbedMdiGroupsEnabled
Gets or sets whether multiple tabbed MDI groups are enabled.
Property Value
- bool:
true
if multiple tabbed MDI groups are enabled; otherwise,false
.
Remarks
If set to false
, run-time end user features for creating new tabbed MDI groups will not display.
NextWindowNavigationActive
Gets or sets whether next window navigation is currently active, meaning the form for navigating to another docking window is visible.
Property Value
- bool:
true
if next window navigation is currently active; otherwise,false
.
NextWindowNavigationEnabled
Gets or sets whether next window navigation is enabled.
Property Value
- bool:
true
if next window navigation is enabled; otherwise,false
.
Remarks
If next window navigation is enabled, the Ctrl+Tab
and Ctrl+Shift+Tab
keys will
activate the form for document window navigation, and the Alt+F7
and Alt+Shift+F7
keys will
activate the form for tool window navigation.
NextWindowNavigationType
Gets or sets a Next
Property Value
- Next
Window :Navigation Type A Next
Window indicating the type of functionality to provide.Navigation Type
OptionsCommand
Gets the Command that is used for more options.
SelectedDocument
Gets the Tabbed
Property Value
- Tabbed
Mdi :Window The Tabbed
Mdi that is currently selected.Window
StandardMdiAutoWindowLayoutEnabled
Gets or sets whether new windows that display in standard MDI will be automatically positioned or whether they will be positioned
using their Standard
Property Value
- bool:
true
if new windows that display in standard MDI will be automatically positioned; otherwise,false
.
TabbedMdiContainerButtonStyle
Gets or sets the button style to use for accessing tabbed MDI windows in a Tabbed
Property Value
- Tabbed
Mdi :Container Button Style A Tabbed
Mdi that indicates the button style.Container Button Style
TabbedMdiContainerTabStripRenderer
Gets or sets the control-specific ITab
Property Value
- ITab
Strip :Renderer The control-specific ITab
Strip to use for drawing the TabRenderer Strip controls in tabbed MDI containers.
TabbedMdiContainerTabStripRendererResolved
Gets the ITab
Property Value
- ITab
Strip :Renderer The ITab
Strip used for drawing the TabRenderer Strip controls in tabbed MDI containers.
Remarks
This property will return a global renderer if there is no control instance renderer override.
The registered renderer type with the UIRendererManager
for this property is IDocument
TabbedMdiDragDropEnabled
Gets or sets whether tabbed MDI tabs support drag/drop.
Property Value
- bool:
true
if tabbed MDI tabs support drag/drop; otherwise,false
.
TabbedMdiMaximumTabExtent
Gets or sets the maximum extent of an MDI tab.
Property Value
- int:
The maximum extent of an MDI tab.
TabbedMdiRightClickSelectsTab
Gets or sets whether a right-click on a tab selects the related page.
Property Value
- bool:
true
if a right-click on a tab selects the related page; otherwise,false
.
TabbedMdiRootContainer
Gets the Tabbed
Property Value
- Tabbed
Mdi :Root Container The Tabbed
Mdi that is currently in use.Root Container
Remarks
This property only returns a value if the DocumentTabbed
.
TabbedMdiSingleTabVisible
Gets or sets whether an MDI tab should still be visible if there is only one document open.
Property Value
- bool:
true
if the tab should be visible; otherwise,false
.
TabbedMdiTabImagesVisible
Gets or sets whether images should be displayed in tabbed MDI window tabs.
Property Value
- bool:
true
if images should be displayed in tabbed MDI window tabs; otherwise,false
.
TabbedMdiTabsAlignNear
Gets or sets whether the tabs in tabbed MDI should align on the near side (left, top) of the tab container or on the far side (right, bottom).
Property Value
- bool:
true
if the tabs in tabbed MDIshould align on the near side of the tab container; otherwise,false
.
TabbedMdiWindowsInsertAtEnd
Gets or sets whether new windows placed in the tabbed MDI area insert at the end of the current tab group.
Property Value
- bool:
true
if new windows placed in the tabbed MDI area insert at the end of the current tab group; otherwise,false
.
ToolWindowContainerTabStripRenderer
Gets or sets the control-specific ITab
Property Value
- ITab
Strip :Renderer The control-specific ITab
Strip to use for drawing the TabRenderer Strip controls in tool window containers.
ToolWindowContainerTabStripRendererResolved
Gets the ITab
Property Value
- ITab
Strip :Renderer The ITab
Strip used for drawing the TabRenderer Strip controls in tool window containers.
Remarks
This property will return a global renderer if there is no control instance renderer override.
The registered renderer type with the UIRendererManager
for this property is ITool
ToolWindowLayoutData
Gets or sets the current layout of all the tool windows managed by this Dock
Property Value
- XmlDocument:
An
XmlDocument
containing the layout data of the current tool window layout.
Remarks
This property may throw an exception while loading if the layout data is invalid.
ToolWindowScreenBoundsCheckEnabled
Gets or sets whether tool windows should be forced back onto a visible Screen
when undocked.
Property Value
- bool:
true
if tool windows should be forced back onto a visibleScreen
when undocked; otherwise,false
.
ToolWindows
Gets the collection of Tool
Property Value
- Tool
Window :Collection A Tool
Window containing the collection of ToolCollection Window controls being managed by this DockManager .
ToolWindowsCanAttach
Gets or sets the global setting for whether tool windows may be attached to another tool window.
Property Value
- bool:
true
if tool windows may be attached to another tool window; otherwise,false
.
Remarks
This setting only affects tool windows whose CanDefaultableBoolean.Default
.
Any other setting on the tool window instance overrides this global setting.
ToolWindowsCanAutoHide
Gets or sets the global setting for whether tool windows may be placed in auto-hide mode.
Property Value
- bool:
true
if tool windows may be placed in auto-hide mode; otherwise,false
.
Remarks
This setting only affects tool windows whose CanDefaultableBoolean.Default
.
Any other setting on the tool window instance overrides this global setting.
ToolWindowsCanBecomeDocuments
Gets or sets the global setting for whether tool windows may be placed in a document state.
Property Value
- bool:
true
if tool windows may be placed in a document state; otherwise,false
.
Remarks
This setting only affects tool windows whose CanDefaultableBoolean.Default
.
Any other setting on the tool window instance overrides this global setting.
ToolWindowsCanClose
Gets or sets the global setting for whether tool windows can be closed.
Property Value
- bool:
true
if tool windows can be closed; otherwise,false
.
Remarks
This setting only affects tool windows whose CanDefaultableBoolean.Default
.
Any other setting on the tool window instance overrides this global setting.
ToolWindowsCanDockHostBottom
Gets or sets the global setting for whether tool windows may be docked to the bottom of the host container control.
Property Value
- bool:
true
if tool windows may be docked to the bottom of the host container control; otherwise,false
.
Remarks
This setting only affects tool windows whose CanDefaultableBoolean.Default
.
Any other setting on the tool window instance overrides this global setting.
ToolWindowsCanDockHostLeft
Gets or sets the global setting for whether tool windows may be docked to the left of the host container control.
Property Value
- bool:
true
if tool windows may be docked to the left of the host container control; otherwise,false
.
Remarks
This setting only affects tool windows whose CanDefaultableBoolean.Default
.
Any other setting on the tool window instance overrides this global setting.
ToolWindowsCanDockHostRight
Gets or sets the global setting for whether tool windows may be docked to the right of the host container control.
Property Value
- bool:
true
if tool windows may be docked to the right of the host container control; otherwise,false
.
Remarks
This setting only affects tool windows whose CanDefaultableBoolean.Default
.
Any other setting on the tool window instance overrides this global setting.
ToolWindowsCanDockHostTop
Gets or sets the global setting for whether tool windows may be docked to the top of the host container control.
Property Value
- bool:
true
if tool windows may be docked to the top of the host container control; otherwise,false
.
Remarks
This setting only affects tool windows whose CanDefaultableBoolean.Default
.
Any other setting on the tool window instance overrides this global setting.
ToolWindowsCanDrag
Gets or sets the global setting for whether tool windows may be dragged to another location.
Property Value
- bool:
true
if tool windows may be dragged to another location; otherwise,false
.
Remarks
This setting only affects tool windows whose CanDefaultableBoolean.Default
.
Any other setting on the tool window instance overrides this global setting.
ToolWindowsCanFloat
Gets or sets the global setting for whether tool windows may be contained in a floating window.
Property Value
- bool:
true
if tool windows may be contained in a floating window; otherwise,false
.
Remarks
This setting only affects tool windows whose CanDefaultableBoolean.Default
.
Any other setting on the tool window instance overrides this global setting.
ToolWindowsCanResize
Gets or sets the global setting for whether tool windows may be resized.
Property Value
- bool:
true
if tool windows may be resized; otherwise,false
.
Remarks
This setting only affects tool windows whose CanDefaultableBoolean.Default
.
Any other setting on the tool window instance overrides this global setting.
ToolWindowsHaveOptions
Gets or sets the global setting for whether tool windows have more options available than the standard options.
Property Value
- bool:
true
if tool windows have more options available than the standard options; otherwise,false
.
Remarks
This setting only affects tool windows whose HasDefaultableBoolean.Default
.
Any other setting on the tool window instance overrides this global setting.
ToolWindowsHaveTitleBars
Gets or sets the global setting for whether tool windows display a title bar when docked.
Property Value
- bool:
true
if tool windows display a title bar when docked; otherwise,false
.
Remarks
This setting only affects tool windows whose HasDefaultableBoolean.Default
.
Any other setting on the tool window instance overrides this global setting.
UnknownToolWindowStatePreservationEnabled
Gets or sets whether the Dock
Property Value
- bool:
true
if the DockManager will persist layout information for unknown tool windows when loading a layout; otherwise,false
.
Methods
ActivateAllInactiveToolWindows()
Activates all inactive tool windows.
AutoHideAllToolWindowsDockedInHost()
Auto-hides all active tool windows that are docked within the host container.
CascadeDocuments()
Cascades the active documents while in Standard
MDI mode.
CloseAllActiveDocuments(bool)
Closes all active documents, which are any tool or document windows currently active in the MDI area.
Parameter | Type | Description |
---|---|---|
force | bool | Whether to force the windows to close, even if the close operation is cancelled in the Window |
CloseAllActiveDocuments(bool, TabbedMdiWindowCloseReason)
Closes all active documents, which are any tool or document windows currently active in the MDI area.
Parameter | Type | Description |
---|---|---|
force | bool | Whether to force the windows to close, even if the close operation is cancelled in the Window |
reason | Tabbed |
A Tabbed |
CloseAllActiveToolWindows(bool)
Closes all active tool windows.
Parameter | Type | Description |
---|---|---|
force | bool | Whether to force the tool windows to close, even if the close operation is cancelled in the Window |
CloseAllActiveToolWindows(bool, TabbedMdiWindowCloseReason)
Closes all active tool windows.
Parameter | Type | Description |
---|---|---|
force | bool | Whether to force the tool windows to close, even if the close operation is cancelled in the Window |
reason | Tabbed |
A Tabbed |
CloseAllButSelectedActiveDocuments()
Closes all active documents, which are any tool or document windows currently active in the MDI area, except for the Selected
CloseAllButSelectedActiveDocuments(TabbedMdiWindowCloseReason)
Closes all active documents, which are any tool or document windows currently active in the MDI area, except for the Selected
Parameter | Type | Description |
---|---|---|
reason | Tabbed |
A Tabbed |
Dispose(bool)
Disposes any resources used by the object.
Parameter | Type | Description |
---|---|---|
disposing | bool | Whether the object is being disposed. |
ExecuteTabbedMdiWindowContextMenuItem(TabbedMdiWindow, TabbedMdiWindowContextMenuItemType)
Executes the command associated with a context menu of a tabbed MDI window.
Parameter | Type | Description |
---|---|---|
tabbedMdiWindow | Tabbed |
The tabbed MDI window to which the command will be applied. |
menuItemType | Tabbed |
The context menu item type to be executed. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if |
Invalid |
Thrown if the context menu item is invalid for a window (e.g. a tool window command executed against a document window). |
GetToolWindowLayoutData(bool)
Returns the current layout of all the tool windows managed by this Dock
Parameter | Type | Description |
---|---|---|
saveTextProperties | bool | Whether to save the text properties of the tool windows. |
Returns
- XmlDocument:
An
XmlDocument
containing the layout data of the current tool window layout.
HideVisibleAutoHideToolWindow(bool)
Hides the currently displayed auto-hide tool window, if any.
Parameter | Type | Description |
---|---|---|
instantaneous | bool | Whether to instantly hide the tool window (without animation). |
Returns
Remarks
true
if a tool window was hidden; otherwise, false
.
IsMenuItemEnabled(DockManagerMenuItemType)
Returns whether the specified type of menu item should be enabled for the manager.
Parameter | Type | Description |
---|---|---|
menuItemType | Dock |
A Dock |
Returns
- bool:
true
if the menu item type should be enabled; otherwise,false
.
IsMenuItemVisible(DockManagerMenuItemType)
Returns whether the specified type of menu item should be visible for the manager.
Parameter | Type | Description |
---|---|---|
menuItemType | Dock |
A Dock |
Returns
- bool:
true
if the menu item type should be visible; otherwise,false
.
LoadDocumentLayoutFromFile(string)
Load tabbed MDI document layout data from a layout data file.
Parameter | Type | Description |
---|---|---|
path | string | Path to the tabbed MDI document layout data file. |
Remarks
This method may throw an exception if the file is not found or if the layout data is invalid.
LoadToolWindowLayoutFromFile(string)
Load tool window layout data from a layout data file.
Parameter | Type | Description |
---|---|---|
path | string | Path to the tool window layout data file. |
Remarks
This method may throw an exception if the file is not found or if the layout data is invalid.
OnActiveFilesContextMenu(TabbedMdiWindowContextMenuEventArgs)
Raises the Active
Parameter | Type | Description |
---|---|---|
e | Tabbed |
A |
OnAutoHideToolWindowDisplaying(TabbedMdiWindowEventArgs)
Raises the Auto
Parameter | Type | Description |
---|---|---|
e | Tabbed |
A |
OnAutoHideToolWindowHiding(TabbedMdiWindowEventArgs)
Raises the Auto
Parameter | Type | Description |
---|---|---|
e | Tabbed |
A |
OnSelectedDocumentChanged(TabbedMdiWindowEventArgs)
Raises the Selected
Parameter | Type | Description |
---|---|---|
e | Tabbed |
A |
OnSelectedTabbedMdiContainerChanged(EventArgs)
Raises the Selected
Parameter | Type | Description |
---|---|---|
e | Event |
An |
OnToolWindowDragged(EventArgs)
Raises the Tool
Parameter | Type | Description |
---|---|---|
e | Event |
An |
OnToolWindowDragging(CancelEventArgs)
Raises the Tool
Parameter | Type | Description |
---|---|---|
e | Cancel |
A |
OnToolWindowLayoutLoaded(EventArgs)
Raises the Tool
Parameter | Type | Description |
---|---|---|
e | Event |
An |
OnToolWindowLayoutLoading(EventArgs)
Raises the Tool
Parameter | Type | Description |
---|---|---|
e | Event |
An |
OnWindowActivated(TabbedMdiWindowEventArgs)
Raises the Window
Parameter | Type | Description |
---|---|---|
e | Tabbed |
A |
OnWindowActivating(TabbedMdiWindowEventArgs)
Raises the Window
Parameter | Type | Description |
---|---|---|
e | Tabbed |
A |
OnWindowClosed(TabbedMdiWindowEventArgs)
Raises the Window
Parameter | Type | Description |
---|---|---|
e | Tabbed |
A |
OnWindowClosing(TabbedMdiWindowClosingEventArgs)
Raises the Window
Parameter | Type | Description |
---|---|---|
e | Tabbed |
A |
OnWindowContextMenu(TabbedMdiWindowContextMenuEventArgs)
Raises the Window
Parameter | Type | Description |
---|---|---|
e | Tabbed |
A |
OnWindowCreated(TabbedMdiWindowEventArgs)
Raises the Window
Parameter | Type | Description |
---|---|---|
e | Tabbed |
A |
OnWindowDisposed(TabbedMdiWindowEventArgs)
Raises the Window
Parameter | Type | Description |
---|---|---|
e | Tabbed |
A |
OnWindowFocused(TabbedMdiWindowEventArgs)
Raises the Window
Parameter | Type | Description |
---|---|---|
e | Tabbed |
A |
OnWindowInitializing(TabbedMdiWindowEventArgs)
Raises the Window
Parameter | Type | Description |
---|---|---|
e | Tabbed |
A |
OnWindowTabToolTipDisplaying(TabbedMdiWindowEventArgs)
Raises the Window
Parameter | Type | Description |
---|---|---|
e | Tabbed |
A |
RequestShowDragDropTarget(Rectangle, DockHintStyle, DockStyle)
Sends a request to the designer for a drop target to be drawn.
Parameter | Type | Description |
---|---|---|
screenBounds | Rectangle | The bounds of the drop target, or Empty to hide the drop target. |
dockHintStyle | Dock |
A Dock |
frameStyle | Dock |
A Dock |
SaveDocumentLayoutToFile(string)
Saves the current layout of all the tabbed MDI documents managed by this Dock
Parameter | Type | Description |
---|---|---|
path | string | Path to the tabbed MDI document layout data file. |
Remarks
The output layout data is stored in XML format.
SaveToolWindowLayoutToFile(string)
Saves the current layout of all the tool windows managed by this Dock
Parameter | Type | Description |
---|---|---|
path | string | Path to the tool window layout data file. |
Remarks
The output layout data is stored in XML format.
SaveToolWindowLayoutToFile(string, bool)
Saves the current layout of all the tool windows managed by this Dock
Parameter | Type | Description |
---|---|---|
path | string | Path to the tool window layout data file. |
saveTextProperties | bool | Whether to save the text properties of the tool windows. |
Remarks
The output layout data is stored in XML format.
ShowNextWindowNavForm(Keys, bool, bool)
Show the Next Window Navigation Form.
Parameter | Type | Description |
---|---|---|
keys | Keys | The modifier Keys that when released, will hide the next window nav form, typically |
toolWindowMode | bool | Whether to be in tool window mode. |
selectNext | bool | Whether to select the next item. |
Returns
- bool:
true
if the key should be handled; otherwise,false
.
TabbedMdiWindowFromControl(Control)
Returns the Tabbed
Parameter | Type | Description |
---|---|---|
control | Control | The Control to check. |
Returns
- Tabbed
Mdi :Window The Tabbed
Mdi , if any, that contains the specified Control.Window
TileDocumentsHorizontally()
Tiles the active documents horizontally while in Standard
MDI mode.
TileDocumentsVertically()
Tiles the active documents vertically while in Standard
MDI mode.
UnknownToolWindowStatePreservationInfoExistsFor(string)
Returns whether unknown tool window layout information is available for a tool window with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key for which to search. |
Returns
- bool:
true
if layout information is available; otherwise,false
.
Events
ActiveFilesContextMenu
Occurs when using tabbed MDI and the Active Files button is clicked, requesting a drop-down menu of open files.
Event Type
Remarks
Set the Cancel
member of the event arguments to true
if the default context menu should not be displayed.
This is useful when displaying custom menus.
The TabbedMdiWindow
member of the event arguments indicates the currently selected Tabbed
AutoHideToolWindowDisplaying
Occurs before a tool window in auto-hide mode is displayed.
Event Type
AutoHideToolWindowHiding
Occurs before a tool window in auto-hide mode is hidden.
Event Type
LoadCustomToolWindowLayoutData
Occurs as a tool window layout is being read, allowing for custom data to be loaded.
Event Type
Remarks
Use the Reader property to enumerate through the custom XML data found in the layout stream.
NextWindowNavigationActiveChanged
Occurs when the Next Window Navigation form either shows or hides.
Event Type
Remarks
Examine the Next
NextWindowNavigationSelectionChanged
Occurs when the selection changes on the Next Window Navigation form.
Event Type
Remarks
Use the event argument properties to customize the text to display for the current selection on the Next Window Navigation form.
SaveCustomToolWindowLayoutData
Occurs as a tool window layout is being written, allowing for custom data to be saved.
SelectedDocumentChanged
Occurs when the value of the Selected
Event Type
SelectedTabbedMdiContainerChanged
Occurs after the selected tabbed MDI container is changed.
Event Type
ToolWindowDragged
Occurs after one or more tool windows are dragged by the user.
Event Type
ToolWindowDragging
Occurs before one or more tool windows are dragged by the user.
Event Type
ToolWindowLayoutLoaded
Occurs after tool window layout is loaded.
Event Type
Remarks
This event is raised after a call to Load
ToolWindowLayoutLoading
Occurs before tool window layout is loaded.
Event Type
Remarks
This event is raised after a call to Load
WindowActivated
Occurs after a window is activated from an inactive state and is visible.
Event Type
WindowActivating
Occurs before a window is activated from an inactive state.
Event Type
WindowClosed
Occurs after a window is deactivated from an active state.
Event Type
WindowClosing
Occurs before a window is deactivated from an active state.
Event Type
WindowContextMenu
Occurs when a window needs a context menu displayed.
Event Type
Remarks
Set the Cancel
member of the event arguments to true
if the default context menu should not be displayed.
This is useful when displaying custom menus.
WindowCreated
Occurs immediately after a window is created.
Event Type
Remarks
This event is only called once during the lifetime of the window.
WindowDisposed
Occurs when a window is disposed.
Event Type
Remarks
This event is only called once during the lifetime of the window.
WindowFocused
Occurs after a window receives focus.
Event Type
WindowInitializing
Occurs before the window is activated for the first time, allowing for lazy initialization of the window.
Event Type
Remarks
After this event is raised for a window, the window's Istrue
.
This event is only called once during the lifetime of the window.
WindowTabToolTipDisplaying
Occurs before a tool tip is displayed for a window tab and gives an opportunity to update the windows's tool tip text.