Click or drag to resize

IMACEPlugInHostAddButton Method

Customize MACE to meet your Live-Virtual-Constructive Simulation and Training Requirements.

[This is preliminary documentation and is subject to change.]

Add a button to the specified ribbon bar.

Namespace:  BSI.MACE.PlugInNS
Assembly:  BSILib (in BSILib.dll) Version: 1.2.1.22047 (1.0.0.0)
Syntax
bool AddButton(
	IMACEPlugIn plugIn,
	string ribbonBarName,
	string buttonName,
	string tooltip,
	Icon iconObject = null
)

Parameters

plugIn
Type: BSI.MACE.PlugInNSIMACEPlugIn
The plug in (.Show() method) to be called by the new button.
ribbonBarName
Type: SystemString
The name of the ribbon bar to add the button to.
buttonName
Type: SystemString
The display name of the button or empty string.
tooltip
Type: SystemString
Popup text to display when user hovers over button or empty string.
iconObject (Optional)
Type: System.DrawingIcon
An icon to display or nothing.

Return Value

Type: Boolean
True if the button was added.
Remarks