C# Class Smrf.NodeXL.ApplicationUtil.LayoutManagerForToolStripSplitButton

Helper class for managing graph layouts.
This class is meant for use in applications that allow the user to select a graph layout via a ToolStripSplitButton that has one item per available layout. It provides methods for populating the ToolStripSplitButton and for creating a layout of the selected type.

Call AddItems during application initialization. When the user clicks one of the items added by this method, the event fires. In the event handler, call LayoutManager.CreateLayout to create a layout of the selected type.

The ToolStripSplitButton object used with this class ends up behaving like a ToolStripComboBox with a DropDownStyle of DropDownList. It improves on the ToolStripComboBox, however, in that its drop-down list can contain other clickable items, whereas the ToolStripComboBox can contain nothing but items that display text. If the caller has added drop-down items to the ToolStripSplitButton object before calling AddItems, this class will preserve those items.

Inheritance: LayoutManager
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Свойство Type Description
m_oToolStripSplitButton System.Windows.Forms.ToolStripSplitButton

Méthodes publiques

Méthode Description
AddItems ( ToolStripSplitButton toolStripSplitButton ) : void
AssertValid ( ) : void
LayoutManagerForToolStripSplitButton ( ) : System

Initializes a new instance of the class.

Méthodes protégées

Méthode Description
OnLayoutMenuItemClick ( object sender, EventArgs e ) : void
m_oToolStripSplitButton_ButtonClick ( object sender, EventArgs e ) : void

Method Details

AddItems() public méthode

public AddItems ( ToolStripSplitButton toolStripSplitButton ) : void
toolStripSplitButton System.Windows.Forms.ToolStripSplitButton
Résultat void

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

LayoutManagerForToolStripSplitButton() public méthode

Initializes a new instance of the class.
public LayoutManagerForToolStripSplitButton ( ) : System
Résultat System

OnLayoutMenuItemClick() protected méthode

protected OnLayoutMenuItemClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

m_oToolStripSplitButton_ButtonClick() protected méthode

protected m_oToolStripSplitButton_ButtonClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Property Details

m_oToolStripSplitButton protected_oe property

protected ToolStripSplitButton,System.Windows.Forms m_oToolStripSplitButton
Résultat System.Windows.Forms.ToolStripSplitButton