C# Класс 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.

Наследование: LayoutManager
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_aoMenuItems System.Windows.Forms.ToolStripMenuItem[]

Открытые методы

Метод Описание
AddMenuItems ( ToolStripDropDownItem parentDropDownItem ) : void
AssertValid ( ) : void
LayoutManagerForMenu ( ) : System

Initializes a new instance of the LayoutManagerForMenu class.

Защищенные методы

Метод Описание
AddMenuItem ( ToolStripDropDownItem oParentDropDownItem, LayoutType eLayoutType, String sMenuText, String sToolTipText ) : ToolStripMenuItem
AddMenuItemSeparator ( ToolStripDropDownItem oParentDropDownItem ) : void
MenuItem_Click ( object sender, EventArgs e ) : void

Описание методов

AddMenuItem() защищенный Метод

protected AddMenuItem ( ToolStripDropDownItem oParentDropDownItem, LayoutType eLayoutType, String sMenuText, String sToolTipText ) : ToolStripMenuItem
oParentDropDownItem System.Windows.Forms.ToolStripDropDownItem
eLayoutType LayoutType
sMenuText String
sToolTipText String
Результат System.Windows.Forms.ToolStripMenuItem

AddMenuItemSeparator() защищенный Метод

protected AddMenuItemSeparator ( ToolStripDropDownItem oParentDropDownItem ) : void
oParentDropDownItem System.Windows.Forms.ToolStripDropDownItem
Результат void

AddMenuItems() публичный Метод

public AddMenuItems ( ToolStripDropDownItem parentDropDownItem ) : void
parentDropDownItem System.Windows.Forms.ToolStripDropDownItem
Результат void

AssertValid() публичный Метод

public AssertValid ( ) : void
Результат void

LayoutManagerForMenu() публичный Метод

Initializes a new instance of the LayoutManagerForMenu class.
public LayoutManagerForMenu ( ) : System
Результат System

MenuItem_Click() защищенный Метод

protected MenuItem_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

Описание свойств

m_aoMenuItems защищенное свойство

protected ToolStripMenuItem[],System.Windows.Forms m_aoMenuItems
Результат System.Windows.Forms.ToolStripMenuItem[]