In This Article

IBarDesignModeCustomizeForm Interface

Provides the base requirements for a design mode customize form.

public interface IBarDesignModeCustomizeForm : IDisposable

Properties

Owner

The Form that owns this form.

Form? Owner { get; set; }

Property Value

Form

TopMost

Indicates whether the form should be displayed as a topmost form.

bool TopMost { get; set; }

Property Value

bool:

true to display the form as a topmost form; otherwise, false. The default is false.

Visible

Indicates whether the control and all its child controls are displayed.

bool Visible { get; set; }

Property Value

bool:

true if the control and all its child controls are displayed; otherwise, false. The default is true.

Methods

AddToolBar()

Enters the 'Add ToolBar' mode.

void AddToolBar()

Enters the 'Add Command Link' mode.

void AddToolBarCommandLink(DockableToolBar toolBar, string commandType)
Parameter Type Description
toolBar DockableToolBar

The DockableToolBar that should be modified.

commandType string

The type of command to add.

Enters the 'Add Popup Menu' mode.

void AddToolBarPopupMenuLink(DockableToolBar toolBar)
Parameter Type Description
toolBar DockableToolBar

The DockableToolBar that should be modified.

Close()

Closes the form.

void Close()

RebindCommandCategoryDropDownList()

Rebinds the category drop-down list.

void RebindCommandCategoryDropDownList()

Show()

Displays the form to the user.

void Show()

ShowDialog(IWin32Window)

Shows the form as a modal dialog box with the specified owner.

DialogResult ShowDialog(IWin32Window owner)
Parameter Type Description
owner IWin32Window

Any object that implements IWin32Window that represents the top-level window that will own the modal dialog box.

Returns

DialogResult:

One of the DialogResult values.

Updates the selected command link data.

void UpdateSelectedCommandLink(BarCommandLink? commandLink)
Parameter Type Description
commandLink BarCommandLink

The BarCommandLink that was selected.

Inherited Members

Extension Methods