C# Class Smrf.NodeXL.ApplicationUtil.LayoutManagerForMenu

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 parent "Layout" menu that has one child menu item per available layout. It provides methods for populating the menu and for creating a layout of the selected type.

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

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

Protected Properties

Свойство Type Description
m_aoMenuItems System.Windows.Forms.ToolStripMenuItem[]

Méthodes publiques

Méthode Description
AddMenuItems ( ToolStripDropDownItem parentDropDownItem ) : void
AssertValid ( ) : void
LayoutManagerForMenu ( ) : System

Initializes a new instance of the LayoutManagerForMenu class.

Méthodes protégées

Méthode Description
AddMenuItem ( ToolStripDropDownItem oParentDropDownItem, LayoutType eLayoutType, String sMenuText, String sToolTipText ) : ToolStripMenuItem
AddMenuItemSeparator ( ToolStripDropDownItem oParentDropDownItem ) : void
MenuItem_Click ( object sender, EventArgs e ) : void

Method Details

AddMenuItem() protected méthode

protected AddMenuItem ( ToolStripDropDownItem oParentDropDownItem, LayoutType eLayoutType, String sMenuText, String sToolTipText ) : ToolStripMenuItem
oParentDropDownItem System.Windows.Forms.ToolStripDropDownItem
eLayoutType LayoutType
sMenuText String
sToolTipText String
Résultat System.Windows.Forms.ToolStripMenuItem

AddMenuItemSeparator() protected méthode

protected AddMenuItemSeparator ( ToolStripDropDownItem oParentDropDownItem ) : void
oParentDropDownItem System.Windows.Forms.ToolStripDropDownItem
Résultat void

AddMenuItems() public méthode

public AddMenuItems ( ToolStripDropDownItem parentDropDownItem ) : void
parentDropDownItem System.Windows.Forms.ToolStripDropDownItem
Résultat void

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

LayoutManagerForMenu() public méthode

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

MenuItem_Click() protected méthode

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

Property Details

m_aoMenuItems protected_oe property

protected ToolStripMenuItem[],System.Windows.Forms m_aoMenuItems
Résultat System.Windows.Forms.ToolStripMenuItem[]