Note: This topic is for
Document/Medical only. When working with automated annotations, the background color (the color that fills the interior) of most objects can be changed by changing the object's "brush". To do so, in design mode right-click the object and select the object's Properties menu item on the context menu that appears. When the Properties dialog box appears select the Brush tab. To use a brush and fill the interior of an object, select the Use Brush option box, and clear the option box if you do not want the interior filled. Other fields that can appear on this tab let you select the type of brush (solid or hatch) and the color. Some objects even have a "Custom" type available that you can use if you wish to define your own brush. The following class objects support a brush:
Programmatically you can determine if an object supports a brush (or pen or font) by querying the properties of the
AnnDrawable class, which contains common drawing information shared by all annotation objects in the Annotation class library. Support for annotation brushes is provided by the
AnnBrush class. LEADTOOLS has derived three classes from this base class:
If the background for an object type is changed using the automation, the corresponding background color value stored for that object type is updated. To change the background colors stored in the automation object: right-click with no objects selected. All the default properties for objects created by the automation object can then be changed. Please note that the
AnnHiliteObject object does not use a brush. Change its color programmatically by changing the
HiliteColor property. In design mode, right-click the object and select the object's Properties menu item on the context menu that appears. When the Properties dialog box appears go to the Hilite tab to select the color. For information on changing the background color of an object's name, refer to
Annotation Object Names. For information on changing the background color for a group of objects, refer to
Grouping and Ungrouping Annotation Objects.
© 1991-2016
LEAD Technologies, Inc. All Rights Reserved.