Add Schematics Commands to ToolbarControl.
[C#]
///<summary>Add Schematics Commands to ToolbarControl</summary>
///
///<param name="toolbarControl">An IToolbarControl interface to which schematic commands will be added.</param>
///
///<remarks></remarks>
public void AddSchematicsCommandsToToolbarControl(ESRI.ArcGIS.Controls.IToolbarControl toolbarControl)
{
// Call to add the schematics commands to the ToolbarControl
// For example, if a ToolbarControl named axToolbarControl1 exists use the following code:
// AddSchematicsCommandsToToolbarControl(axToolbarControl1.Object as ESRI.ArcGIS.Controls.IToolbarControl);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicCreateDiagramCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicUpdateDiagramCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicSaveAsDiagramCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleTextOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicEditTargetControl", -1, -1, true, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicDecreaseLabelSizeCommand", -1, -1, true, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicIncreaseLabelSizeCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicDecreaseSymbolSizeCommand", -1, -1, true, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicIncreaseSymbolSizeCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicStartEditCommand", -1, -1, true, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicStopEditCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicSaveEditsCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicMoveElementTool", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriControls.ControlsUndoCommand", -1, -1, true, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriControls.ControlsRedoCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicLayoutToolControl", -1, -1, true, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicLayoutExecuteCommand", -1, -1, true, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicSelectRootTool", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicSelectEndTool", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicLayoutPropertiesCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicRemoveLinkPointsCommand", -1, -1, true, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicSquareLinksCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicImportLayerPropertiesCommand", -1, -1, true, 0, esriCommandStyles.esriCommandStyleTextOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicPropagateLayerPropertiesCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleTextOnly);
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicRestoreDefaultLayerPropertiesCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleTextOnly);
}
[Visual Basic .NET]
'''<summary>Add Schematics Commands to ToolbarControl</summary>
'''
'''<param name="toolbarControl">An IToolbarControl interface to which schematic commands will be added.</param>
'''
'''<remarks></remarks>
Public Sub AddSchematicsCommandsToToolbarControl(ByVal toolbarControl As ESRI.ArcGIS.Controls.IToolbarControl)
' Call to add the schematics commands to the ToolbarControl
' For example, if a ToolbarControl named axToolbarControl1 exists use the following code:
' AddSchematicsCommandsToToolbarControl(CType(axToolbarControl1.Object, IToolbarControl))
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicCreateDiagramCommand", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicUpdateDiagramCommand", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicSaveAsDiagramCommand", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleTextOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicEditTargetControl", -1, -1, True, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicDecreaseLabelSizeCommand", -1, -1, True, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicIncreaseLabelSizeCommand", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicDecreaseSymbolSizeCommand", -1, -1, True, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicIncreaseSymbolSizeCommand", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicStartEditCommand", -1, -1, True, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicStopEditCommand", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicSaveEditsCommand", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicMoveElementTool", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriControls.ControlsUndoCommand", -1, -1, True, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriControls.ControlsRedoCommand", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicLayoutToolControl", -1, -1, True, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicLayoutExecuteCommand", -1, -1, True, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicSelectRootTool", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicSelectEndTool", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicLayoutPropertiesCommand", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicRemoveLinkPointsCommand", -1, -1, True, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicSquareLinksCommand", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicImportLayerPropertiesCommand", -1, -1, True, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleTextOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicPropagateLayerPropertiesCommand", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleTextOnly)
toolbarControl.AddItem("esriSchematicControls.ControlsSchematicRestoreDefaultLayerPropertiesCommand", -1, -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleTextOnly)
End Sub