C# Class nHydrate.Dsl.nHydrateToolboxHelperBase

Mostrar archivo Open project: nHydrate/nHydrate

Public Methods

Method Description
CreateToolboxItems ( ) : global::System.Collections.Generic.IList

Returns a list of custom toolbox items to be added dynamically

GetToolboxItem ( string itemId, global::Microsoft.VisualStudio.Modeling store ) : DslDesign::ModelingToolboxItem

Returns instance of ModelingToolboxItem based on specified name. This method must be called from within a Transaction. Failure to do so will result in an exception

GetToolboxItemData ( string itemId, DataFormats format ) : object

Given a toolbox item "unique ID" and a data format identifier, returns the content of the data format.

Protected Methods

Method Description
CreateElementToolPrototype ( global::Microsoft.VisualStudio.Modeling store, global domainClassId ) : DslModeling::ElementGroupPrototype

Creates an ElementGroupPrototype for the element tool corresponding to the given domain class id. Default behavior is to create a prototype containing an instance of the domain class. Derived classes may override this to add additional information to the prototype.

nHydrateToolboxHelperBase ( global serviceProvider ) : System

Constructs a new nHydrateToolboxHelperBase.

Private Methods

Method Description
GetToolboxItem ( string itemId ) : DslDesign::ModelingToolboxItem

Given a toolbox item "unique ID" returns the the toolbox item using cached dictionary

Method Details

CreateElementToolPrototype() protected method

Creates an ElementGroupPrototype for the element tool corresponding to the given domain class id. Default behavior is to create a prototype containing an instance of the domain class. Derived classes may override this to add additional information to the prototype.
protected CreateElementToolPrototype ( global::Microsoft.VisualStudio.Modeling store, global domainClassId ) : DslModeling::ElementGroupPrototype
store global::Microsoft.VisualStudio.Modeling
domainClassId global
return DslModeling::ElementGroupPrototype

CreateToolboxItems() public method

Returns a list of custom toolbox items to be added dynamically
public CreateToolboxItems ( ) : global::System.Collections.Generic.IList
return global::System.Collections.Generic.IList

GetToolboxItem() public method

Returns instance of ModelingToolboxItem based on specified name. This method must be called from within a Transaction. Failure to do so will result in an exception
public GetToolboxItem ( string itemId, global::Microsoft.VisualStudio.Modeling store ) : DslDesign::ModelingToolboxItem
itemId string unique name of desired ToolboxItem
store global::Microsoft.VisualStudio.Modeling Store to perform the operation against
return DslDesign::ModelingToolboxItem

GetToolboxItemData() public method

Given a toolbox item "unique ID" and a data format identifier, returns the content of the data format.
public GetToolboxItemData ( string itemId, DataFormats format ) : object
itemId string The unique ToolboxItem to retrieve data for
format System.Windows.Forms.DataFormats The desired format of the resulting data
return object

nHydrateToolboxHelperBase() protected method

Constructs a new nHydrateToolboxHelperBase.
protected nHydrateToolboxHelperBase ( global serviceProvider ) : System
serviceProvider global
return System