C# Class Smrf.NodeXL.ExcelTemplate.LayoutManagerForRibbonDropDown

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

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

Inheritance: Smrf.NodeXL.ApplicationUtil.LayoutManager
Exibir arquivo Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_oRibbonDropDown RibbonDropDown

Public Methods

Method Description
AddRibbonDropDownItems ( RibbonDropDown ribbonDropDown ) : void
AssertValid ( ) : void
LayoutManagerForRibbonDropDown ( ) : System

Initializes a new instance of the class.

Protected Methods

Method Description
RibbonDropDown_SelectionChanged ( object sender, RibbonControlEventArgs e ) : void

Method Details

AddRibbonDropDownItems() public method

public AddRibbonDropDownItems ( RibbonDropDown ribbonDropDown ) : void
ribbonDropDown RibbonDropDown
return void

AssertValid() public method

public AssertValid ( ) : void
return void

LayoutManagerForRibbonDropDown() public method

Initializes a new instance of the class.
public LayoutManagerForRibbonDropDown ( ) : System
return System

RibbonDropDown_SelectionChanged() protected method

protected RibbonDropDown_SelectionChanged ( object sender, RibbonControlEventArgs e ) : void
sender object
e RibbonControlEventArgs
return void

Property Details

m_oRibbonDropDown protected_oe property

protected RibbonDropDown m_oRibbonDropDown
return RibbonDropDown