To automatically hide the automation toolbar, switch the value of the UserMode property to Leadtools.Annotations.AnnUserMode. To display the toolbar, switch the value of the UserMode property to AnnUserMode.Design. Whenever the UserMode property is changed, the Leadtools.Annotations.AnnAutomationManager.UserModeChanged event is fired.
Use the CurrentObjectId property to get or set the current automation object id, which is the Id of the AnnAutomationObject currently selected in the ToolBar. This object is the "active" object to be drawn on the current active AnnAutomation. You can change the value of this property programmatically. It also changes when the user clicks on the buttons of the automation ToolBar. The Leadtools.Annotations.AnnAutomationManager.CurrentObjectIdChanged event is fired when this property is changed.
Use the CurrentRubberStampType property to get or set the current automation rubber stamp object type, which is the Type of the AnnRubberStampObject currently selected in the ToolBar. This object is the "active" object to be drawn on the current active AnnAutomation. You can change the value of this property programmatically. It also changes when the user clicks on the buttons of the automation ToolBar. The Leadtools.Annotations.AnnAutomationManager.CurrentRubberStampTypeChanged event is fired when this property is changed. Starting with Version 14.5 it is possible to choose between the original set of images and a new set of default images for the rubber stamps. In design mode of the automation, choose Annotations -> Behavior - Use New Rubber Stamp Pictures to toggle between the two sets of images. To change the style programmatically, Set the SetUseNewPicture property to true to use the new default picture for an AnnRubberStampObject annotation object. Use the GetUseNewPicture method to get a value that indicates whether the new default picture for an AnnRubberStampObject annotation object is to be used. For more information, refer to New Annotation Features of Version 14.5.