AnnGetPointX method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Visual J++ example

Syntax VARIANT AnnGetPointX (OLE_HANDLE hObject);

Overview:  Refer to Implementing Annotations.

Remarks

(Document/Medical only) Returns an array of floating-point numbers for the X coordinates of the vertices (corner points) of the specified annotation object. You can use this method 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. The unit of measure is determined by the ScaleMode property.

AnnGetPointX works only with the following types of objects:

ANNOBJECT_POINTER
ANNOBJECT_FREEHAND
ANNOBJECT_LINE
ANNOBJECT_POLYGON
ANNOBJECT_POLYLINE
ANNOBJECT_TEXTPOINTER

For an ANNOBJECT_TEXTPOINTER, five points are returned. The first four points are coordinates of a rectangle. The last two are the endpoints of the "pointer" segment.

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

See Also

Elements:  AnnGetPointCount method, AnnGetPointY method

Topics:  Annotations (Document/Medical only): Automation