C# Class SIL.FieldWorks.Common.UIAdapters.ToolStripItemExtender

Inheritance: IDisposable
Mostra file Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
CreateButton ( ) : ToolStripButton

Creates a ToolStripButton.

CreateComboBox ( ) : ToolStripComboBox

Creates a ToolStripComboBox.

CreateContextMenu ( ) : ContextMenuStrip

Creates a context menu.

CreateControlHost ( Control ctrl ) : ToolStripControlHost

Creates a ToolStripControlHost.

CreateDropDownButton ( ) : ToolStripDropDownButton

Creates a ToolStripDropDownButton.

CreateMenuItem ( ) : ToolStripMenuItem

Creates the menu item.

CreateSplitButton ( ) : ToolStripSplitButton

Creates a ToolStripSplitButton.

CreateToolStrip ( ) : ToolStrip

Creates a tool strip.

Dispose ( ) : void
GetBeginGroup ( ToolStripItem item ) : bool

Sets the begin group property for the specified ToolStripItem.

InsertItemBefore ( ToolStripItem beforeItem, ToolStripItem insertItem ) : void

Inserts a new item before the specified item.

SetBeginGroup ( ToolStripItem item, bool beginGroup ) : void

Sets the begin group property for the specified ToolStripItem.

Protected Methods

Method Description
Dispose ( bool fDisposing ) : void

Private Methods

Method Description
AddSeparator ( ToolStrip ts ) : void

Adds a separator to the specified ToolStrip before the ToolStripItem associated with this instance of the extender.

HandleItemAddedToOwner ( object sender, System.Windows.Forms.ToolStripItemEventArgs e ) : void

Handles adding an item's separator (if it has one) to its owning ToolStrip.

HandleItemRemovedFromOwner ( object sender, System.Windows.Forms.ToolStripItemEventArgs e ) : void

Handles removing an item's separator (if it has one) from its owning ToolStrip.

HandleItemsVisiblilityChanged ( object sender, EventArgs e ) : void

Make sure a separator's visible state tracks with the ToolStripItem to which it's associated.

RemoveSeparator ( ToolStrip ts ) : void

Removes from the specified ToolStrip the separator for the ToolStripItem associated with this instance of the extender.

ToolStripItemExtender ( ToolStripItem item ) : System

Initializes a new instance of the ToolStripItemHelper class.

Method Details

CreateButton() public static method

Creates a ToolStripButton.
public static CreateButton ( ) : ToolStripButton
return System.Windows.Forms.ToolStripButton

CreateComboBox() public static method

Creates a ToolStripComboBox.
public static CreateComboBox ( ) : ToolStripComboBox
return System.Windows.Forms.ToolStripComboBox

CreateContextMenu() public static method

Creates a context menu.
public static CreateContextMenu ( ) : ContextMenuStrip
return System.Windows.Forms.ContextMenuStrip

CreateControlHost() public static method

Creates a ToolStripControlHost.
public static CreateControlHost ( Control ctrl ) : ToolStripControlHost
ctrl System.Windows.Forms.Control
return System.Windows.Forms.ToolStripControlHost

CreateDropDownButton() public static method

Creates a ToolStripDropDownButton.
public static CreateDropDownButton ( ) : ToolStripDropDownButton
return System.Windows.Forms.ToolStripDropDownButton

CreateMenuItem() public static method

Creates the menu item.
public static CreateMenuItem ( ) : ToolStripMenuItem
return System.Windows.Forms.ToolStripMenuItem

CreateSplitButton() public static method

Creates a ToolStripSplitButton.
public static CreateSplitButton ( ) : ToolStripSplitButton
return System.Windows.Forms.ToolStripSplitButton

CreateToolStrip() public static method

Creates a tool strip.
public static CreateToolStrip ( ) : ToolStrip
return System.Windows.Forms.ToolStrip

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool fDisposing ) : void
fDisposing bool
return void

GetBeginGroup() public static method

Sets the begin group property for the specified ToolStripItem.
public static GetBeginGroup ( ToolStripItem item ) : bool
item System.Windows.Forms.ToolStripItem
return bool

InsertItemBefore() public static method

Inserts a new item before the specified item.
public static InsertItemBefore ( ToolStripItem beforeItem, ToolStripItem insertItem ) : void
beforeItem System.Windows.Forms.ToolStripItem The before item.
insertItem System.Windows.Forms.ToolStripItem The insert item.
return void

SetBeginGroup() public static method

Sets the begin group property for the specified ToolStripItem.
public static SetBeginGroup ( ToolStripItem item, bool beginGroup ) : void
item System.Windows.Forms.ToolStripItem
beginGroup bool
return void