C# 클래스 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.

상속: LayoutManager
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_oToolStripSplitButton System.Windows.Forms.ToolStripSplitButton

공개 메소드들

메소드 설명
AddItems ( ToolStripSplitButton toolStripSplitButton ) : void
AssertValid ( ) : void
LayoutManagerForToolStripSplitButton ( ) : System

Initializes a new instance of the class.

보호된 메소드들

메소드 설명
OnLayoutMenuItemClick ( object sender, EventArgs e ) : void
m_oToolStripSplitButton_ButtonClick ( object sender, EventArgs e ) : void

메소드 상세

AddItems() 공개 메소드

public AddItems ( ToolStripSplitButton toolStripSplitButton ) : void
toolStripSplitButton System.Windows.Forms.ToolStripSplitButton
리턴 void

AssertValid() 공개 메소드

public AssertValid ( ) : void
리턴 void

LayoutManagerForToolStripSplitButton() 공개 메소드

Initializes a new instance of the class.
public LayoutManagerForToolStripSplitButton ( ) : System
리턴 System

OnLayoutMenuItemClick() 보호된 메소드

protected OnLayoutMenuItemClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

m_oToolStripSplitButton_ButtonClick() 보호된 메소드

protected m_oToolStripSplitButton_ButtonClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

프로퍼티 상세

m_oToolStripSplitButton 보호되어 있는 프로퍼티

protected ToolStripSplitButton,System.Windows.Forms m_oToolStripSplitButton
리턴 System.Windows.Forms.ToolStripSplitButton