AnnGetPointCount method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnGetPointCount(LEADTyp::L_HANDLE hObject);

Delphi Syntax

Function AnnGetPointCount (hObject: L_HANDLE): Longint;

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

Use the AnnGetType method to identify the object type.

For an ANNOBJECT_TEXTPOINTER object, Count is updated with the value 5.

See Also

Elements

AnnGetPointX method, AnnGetPointY method, Point property

Topics

Annotations (Document/Medical only): Automation