RulerUnit property (ILEADRasterAnnotation)

Visual Basic example

Visual C++ 5.0 example

Syntax

long RulerUnit (long Index);

Overview

Refer to Implementing Annotations.

Remarks

(Read Only) Gets an array of values that represents the unit of measure for each ruler length in the Distance property. This property is updated by the AnnGetDistance2 method. Possible values are:

ANN_UNIT_INCHES

0

ANN_UNIT_FEET

1

ANN_UNIT_YARDS

2

ANN_UNIT_MICROMETERS

3

ANN_UNIT_MILLIMETERS

4

ANN_UNIT_CENTIMETERS

5

ANN_UNIT_METERS

6

ANN_UNIT_TWIPS

7

ANN_UNIT_POINTS

8

ANN_UNIT_PIXELS

9

ANN_UNIT_SMART_METRIC

10

ANN_UNIT_SMART_ENGLISH

11

If the entry in RulerUnit (i) is ANN_UNIT_SMART_METRIC or ANN_UNIT_SMART_ENGLISH, then the actual unit of measure for the ruler length in Distance (i) can be found in SmartUnit (i). If RulerUnit (i) is not ANN_UNIT_SMART_METRIC or ANN_UNIT_SMART_ENGLISH, then both RulerUnit (i) and SmartUnit (i) contain the unit of measure.

See Also

Elements:

AnnGetDistance2 method, Distance property, TotalDistance property, TotalRulerUnit property, TotalSmartUnit property, SmartUnit property, DistanceCount property

Topics:

Annotations (Document/Medical only): Object Manipulation

 

Using Rulers in Annotation Objects