Add the Ink commands to the ToolbarControl.
[C#]
///<summary>Add the Ink commands to the ToolbarControl.</summary> /// ///<param name="toolbarControl">An IToolbarControl interface. Use the .Object property when passing a control in .NET. Example: axToolbarControl1.Object</param> /// ///<remarks></remarks> public void AddInkCommandsToToolbarControl(ESRI.ArcGIS.Controls.IToolbarControl toolbarControl) { // Call to add the ink commands to the ToolbarControl // For example, if a ToolbarControl named axToolbarControl1 exists use the following code: // AddInkCommandsToToolbarControl(axToolbarControl1.Object as ESRI.ArcGIS.Controls.IToolbarControl); toolbarControl.AddToolbarDef("esriControls.ControlsInkToolbar", -1, false, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly); toolbarControl.AddItem("esriControls.ControlsSelectTool", -1, -1, true, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly); }
[Visual Basic .NET]
'''<summary>Add the Ink commands to the ToolbarControl.</summary> ''' '''<param name="toolbarControl">An IToolbarControl interface. Use the .Object property when passing a control in .NET. Example: axToolbarControl1.Object</param> ''' '''<remarks></remarks> Private Sub AddInkCommandsToToolbarControl(ByVal toolbarControl As ESRI.ArcGIS.Controls.IToolbarControl) ' Call to add the ink commands to the ToolbarControl ' For example, if a ToolbarControl named axToolbarControl1 exists use the following code: ' AddInkCommandsToToolbarControl (AxToolbarControl1.Object) toolbarControl.AddToolbarDef("esriControls.ControlsInkToolbar", -1, False, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly) toolbarControl.AddItem("esriControls.ControlsSelectTool", -1, -1, True, 0, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly) End Sub