Note: This topic is for Document/Medical only.
When working with automated annotations, the background brush (the brush that fills the interior) of most objects can be changed by changing the object's "Fill". 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 Fill tab. To use a brush and fill the interior of an object, select the Use Fill 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 Brush. 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 fill:
Programmatically you can determine if an object supports a fill (or stroke or text) by querying the properties of the AnnObject class, which contains common drawing information shared by all annotation objects in The WPF annotation class libraray. Support for annotation brushes is provided by the Brush class.
If the background for an object type is changed using the automation, the corresponding background fill value stored for that object type is updated. To change the background brushes 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 fill. Change its color programmatically by changing the Fill 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 fill of an object's header, refer to WPF Annotation Object Headers. For information on changing the background fill for a group of objects, refer to Grouping and Ungrouping WPF Annotation Objects.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET