Custom annotations or custom marks (i.e., classes derived from ImGearARTCustomMark) can be modified with the mouse by using the ImGearAnnotatorMarkController.RegisterCustomController(string customTypeName, ImGearAnnotatorMarkController controller) method to register a class that derives from ImGearAnnotatorMarkController, ImGearAnnotatorRectangleController, or ImGearAnnotatorPolyController. The GetCustomController(string customTypeName) method can be used to get a registered custom mark annotator controller. A custom sector mark is demonstrated in the ART sample.
You could include a toolbar item for your custom mark as demonstrated in the ART sample. To set the mouse tool to create the custom mark, you need to set the PageView.MouseTool property to CreateCustomMark and set the PageView.CustomMarkController property to the key for the custom mark annotator controller, which is the string you passed to the ImGearARTCustomController.RegisterCustomMark method when registering your custom mark annotator controller.
See the ImGearAnnotatorMarkController, ImGearAnnotatorRectangleController, and ImGearAnnotatorPolyController sections for information regarding overriding the annotator controller methods, such as mark creation methods.
The following topics are discussed in this section: