AnnSetForeColor method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnSetForeColor(HANNOBJECT hObject, TColor clFore, bool bSelected)

Delphi Syntax

Function AnnSetForeColor (hObject: HANNOBJECT; clFore: TColor; bSelected: Boolean ): L_INT

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Sets the foreground 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 foreground 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

AnnGetForeColor method, AnnSetBackColor method, AnnGetBackColor method

Topics

Annotations (Document/Medical only): Object Manipulation

 

Using Color Values in LEADTOOLS