AnnSetBackColor method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnSetBackColor(HANNOBJECT hObject, TColor clBack, bool bSelected)

Delphi Syntax

Function AnnSetBackColor (hObject: HANNOBJECT; clBack: TColor; bSelected: Boolean ): L_INT

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Sets the background color of one or more annotation objects.

To convert from a TColor value to a COLORREF value, call the ColorToRGB method. To convert from a COLORREF value to a TColor value, cast the COLORREF value to a TColor type.

To see how the background color relates to the fill modes, refer to Illustration of Fill Options for Annotations.

This method does not affect objects that do not have this property or that do not let you change the property. For descriptions of the various types of objects and their properties, refer to Types of Annotations.

See Also

Elements

AnnSetForeColor method, AnnGetForeColor method, AnnGetBackColor method

Topics

Annotations (Document/Medical only): Object Manipulation

 

Using Color Values in LEADTOOLS