AnnGetForeColor method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnGetForeColor(HANNOBJECT hObject, TColor &clFore)

Delphi Syntax

Function AnnGetForeColor (hObject: HANNOBJECT; var clFore: TColor): L_INT

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Gets the current value of the specified annotation object's foreground color.

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.

See Also

Elements

AnnSetForeColor method, AnnSetBackColor method, AnnGetBackColor method

Topics

Annotations (Document/Medical only): Object Manipulation

 

Using Color Values in LEADTOOLS