GetAnnotationMarkCount Method

Returns the number of annotation marks on an image page or in an annotation group.

Applies To

Image Edit control

Syntax

object.GetAnnotationMarkCount([GroupName,AnnotationType])

Arguments

Parameter

        Data Type

        Setting

GroupName

String

The name of the annotation group

AnnotationType

Integer
(enumerated)

The desired AnnotationType setting


AnnotationType Argument

Setting

Description


0

None

1

Straight Line

2

Freehand Line

3

Hollow Rectangle

4

Filled Rectangle

5

Image Embedded

6

Image Reference

7

Text

8

Text Stamp

9

Text From File

10

Attach-a-Note

11

Select Annotations


Return Value

Integer

Remarks

The Display method must be invoked prior to calling this method.

If the GroupName and Annotation Type parameters are both entered, the GetAnnotationMarkCount method returns the number of annotation marks of the type specified that are in the annotation group specified.

If the GroupName parameter is entered, but the Annotation Type is not entered, the GetAnnotationMarkCount method returns the total number of annotation marks that are in the annotation group specified.

If the GroupName parameter is not entered, but the Annotation Type is entered, the GetAnnotationMarkCount method returns the number of annotation marks of the type specified that are in all of the annotation groups.

If no parameters are entered, the GetAnnotationMarkCount method returns the total number of annotation marks that are on the page.

The GetAnnotationMarkCount method is valid only at run-time.

See Also

Annotation topics in Imaging Concepts

AnnotationGroupCount property

AnnotationType property

Display method