AnnTicMarkLength property (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

double AnnTicMarkLength[HANNOBJECT hObject]

Delphi Syntax

AnnTicMarkLength [hObject: HANNOBJECT ]: L_DOUBLE

Overview

Refer to Implementing Annotations.

Remarks

Gets and sets the length of the tic mark of the specified annotation object, if hObject specifies an ANNOBJECT_RULER or an ANNOBJECT_POLYRULER object. The tic marks are the perpendicular lines that measure the units.

The length of the tic mark is expressed in pixels, not in points. The length is for the whole line, not just from the intersection point with the ruler to the end point of the tic mark - it is from one end of the tic mark to the other end of the tic mark.

Note that a ruler can have tic marks of different lengths. For example, the ruler in the figure below has tic marks with several different lengths. In this case, this property is updated with the length of the longest tic mark.

image\Ruler.gif

You must set the AnnFlags property before setting this property. Possible values for the Flags property for this property are:

0

ANNFLAG_SELECTED

ANNFLAG_NOTTHIS

ANNFLAG_RECURSE

ANNFLAG_NOTCONTAINER

ANNFLAG_NOINVALIDATE

ANNFLAG_CHECKMENU

See Also

Elements:

AnnFlags property

Topics:

Annotations: Object Manipulation

 

Using Rulers in Annotation Objects

 

New Annotation Features of Version 14.5