AnnGetPointCount method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Visual J++ example

Syntax long AnnGetPointCount (OLE_HANDLE hObject);

Overview:  Refer to Implementing Annotations.

Remarks

(Document/Medical only) Returns the number of vertices (corner points) in an annotation object.

AnnGetPointCount works only with the following types of objects:

ANNOBJECT_POINTER
ANNOBJECT_FREEHAND
ANNOBJECT_LINE
ANNOBJECT_POLYGON
ANNOBJECT_POLYLINE

You can use the AnnGetType method to identify the object type.

See Also

Elements:  AnnGetPointX method, AnnGetPointY method

Topics:  Annotations (Document/Medical only): Automation