Yes you can add buttons, remove buttons, and also change the images of any button. For details, see the help topic for the AnnAutomationObject.ToolBarButton Property.
I used the following coding to add the default toolbars:
automationManager.CreateDefaultObjects(); automationManager.CreateToolBar();How can I remove some defaulted toolbar button (e.g. the Line ToolBar Button) from the toolbar?
In addition, how can i detect the drawing the the RasterImageViewer for the automated annotation?I want to marked the image in RasterImageViewer as "modified" if user started drawing annotation on it.