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
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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[]