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 an instance of the class.

public TabbedMdiContainer(DockManager dockManager)
Parameter Type Description
dockManager DockManager

The DockManager that is managing the dock object.

Properties

DisplayRectangle

The rectangle that represents the display area of the control.

public override Rectangle DisplayRectangle { get; }

Property Value

Rectangle

DockManager

The DockManager that is managing the dock object.

public DockManager DockManager { get; }

Property Value

DockManager

DockObjectType

A DockObjectType specifying the type of dock object.

public DockObjectType DockObjectType { get; }

Property Value

DockObjectType

SelectedTabbedMdiWindow

The selected TabbedMdiWindow.

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

Property Value

TabbedMdiWindow

TabbedMdiRootContainer

The TabbedMdiRootContainer that is currently in use.

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

Property Value

TabbedMdiRootContainer

TabbedMdiWindows

The collection of child TabbedMdiWindow controls.

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

Property Value

TabbedMdiWindowCollection

Methods

Dispose(bool)

Releases the unmanaged resources used by the Control and its child controls and optionally releases the managed resources.

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

true to release both managed and unmanaged resources; false to release only unmanaged resources.

OnRender(PaintEventArgs)

Renders the element.

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

The event data.

OnSizeChanged(EventArgs)

Raises the SizeChanged event.

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

An EventArgs that contains the event data.

ProcessCmdKey(ref Message, Keys)

Processes a command key.

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

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

Returns

bool:

true if the character 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

Extension Methods