AnnGetPointX method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

TAnnPoints * AnnGetPointX (LEADTyp::L_HANDLE hObject);

Delphi Syntax

Function AnnGetPointX (hObject: L_HANDLE): TANNPOINTS;

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Returns an object of type TAnnPoints, which contains the X coordinates of the vertices (corner points) of the specified annotation object. The X coordinates can be accessed through the Point property. This method can be used with the AnnGetPointY method to get the vertices of the object. The points that define the vertices are relative to the bitmap in the control.

When the TAnnPoints object is no longer needed, free the object by calling the procedure TAnnPoints Free ().

AnnGetPointX works only with the following types of objects:

ANNOBJECT_AUDIO
ANNOBJECT_BUTTON
ANNOBJECT_CROSSPRODUCT
ANNOBJECT_CURVE
ANNOBJECT_CURVECLOSED
ANNOBJECT_ELLIPSE
ANNOBJECT_ENCRYPT
ANNOBJECT_FREEHAND
ANNOBJECT_FREEHANDHOTSPOT
ANNOBJECT_HILITE
ANNOBJECT_HOTSPOT
ANNOBJECT_LINE
ANNOBJECT_NOTE
ANNOBJECT_POINT
ANNOBJECT_POINTER
ANNOBJECT_POLYGON
ANNOBJECT_POLYLINE
ANNOBJECT_POLYRULER
ANNOBJECT_PROTRACTOR
ANNOBJECT_PUSHPIN
ANNOBJECT_RECT
ANNOBJECT_REDACT
ANNOBJECT_RTF
ANNOBJECT_RULER
ANNOBJECT_STAMP
ANNOBJECT_TEXT
ANNOBJECT_TEXTPOINTER
ANNOBJECT_VIDEO

Use the AnnGetType method to identify the object type. Use the AnnGetPointCount method to find out how many vertices are in the object.

For an ANNOBJECT_TEXTPOINTER object, Points is updated with 5 points. The first four points are coordinates of a rectangle. The last two are the endpoints of the "pointer" segment.

See Also

Elements

AnnGetPointCount method, AnnGetPointY method, Point property

Topics

Annotations (Document/Medical only): Automation

 

New Annotation Features of Version 14.5