In This Article

TabbedMdiContainer Class

Provides the root container for document window tabbed MDI containers.

public class TabbedMdiContainer : UIControl, IUIControl, IUIElement, ILogicalTreeNode, IDpiAwareElement, IDisposable, IDockObject
Inheritance:
object MarshalByRefObject Component Control ScrollableControl UIControl object
Implements:
IUIControl IUIElement ILogicalTreeNode IDpiAwareElement IDisposable IDockObject

Constructors

TabbedMdiContainer(DockManager)

Initializes a new instance of the TabbedMdiContainer class.

public TabbedMdiContainer(DockManager dockManager)
Parameter Type Description
dockManager DockManager

The DockManager that is managing the dock object.

Properties

DisplayRectangle

Gets the rectangle that represents the display area of the control.

public override Rectangle DisplayRectangle { get; }

Property Value

Rectangle:

A Rectangle that represents the display area of the control.

DockManager

Gets the DockManager that is managing the dock object.

public DockManager DockManager { get; }

Property Value

DockManager:

The DockManager that is managing the dock object.

DockObjectType

Gets a DockObjectType specifying the type of dock object.

public DockObjectType DockObjectType { get; }

Property Value

DockObjectType:

A DockObjectType specifying the type of dock object.

SelectedTabbedMdiWindow

Gets or sets the selected TabbedMdiWindow.

[Browsable(false)]
public TabbedMdiWindow SelectedTabbedMdiWindow { get; set; }

Property Value

TabbedMdiWindow:

The selected TabbedMdiWindow.

TabbedMdiRootContainer

Gets the TabbedMdiRootContainer that is currently in use.

[Browsable(false)]
public TabbedMdiRootContainer TabbedMdiRootContainer { get; }

Property Value

TabbedMdiRootContainer:

The TabbedMdiRootContainer that is currently in use.

TabbedMdiWindows

Gets the collection of child TabbedMdiWindow controls.

[Browsable(false)]
public TabbedMdiWindowCollection TabbedMdiWindows { get; }

Property Value

TabbedMdiWindowCollection:

A TabbedMdiWindowCollection containing the collection of child TabbedMdiWindow controls.

Methods

Dispose(bool)

Disposes any resources used by the object.

protected override void Dispose(bool disposing)
Parameter Type Description
disposing bool

Whether the object is being disposed.

OnRender(PaintEventArgs)

Renders the element.

protected override void OnRender(PaintEventArgs e)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

OnSizeChanged(EventArgs)

Occurs when the size is changed.

protected override void OnSizeChanged(EventArgs e)
Parameter Type Description
e EventArgs

A EventArgs that contains the event data.

ProcessCmdKey(ref Message, Keys)

Processes a key.

protected override bool ProcessCmdKey(ref Message m, Keys keyData)
Parameter Type Description
m Message

The message to process.

keyData Keys

One of the Keys values that represents the key to process.

Returns

bool:

true if the key was processed by the control; otherwise, false.

SelectNext()

Selects the next TabbedMdiWindow, wrapping to the beginning if necessary.

public void SelectNext()

Remarks

If the last TabbedMdiWindow is selected when this method is called, the control will attempt to wrap to another container. If one is not available, the first TabbedMdiWindow in this container will be selected.

SelectPrevious()

Selects the previous TabbedMdiWindow, wrapping to the end if necessary.

public void SelectPrevious()

Remarks

If the first TabbedMdiWindow is selected when this method is called, the control will attempt to wrap to another container. If one is not available, the last TabbedMdiWindow in this container will be selected.

ShowActiveFilesMenu()

Displays the active files menu for the TabbedMdiContainer.

public bool ShowActiveFilesMenu()

Returns

bool:

true if the active files button is visible, enabled and the menu was displayed; otherwise, false.

Inherited Members