TotalSmartUnit property (ILEADRasterAnnotation)
double TotalSmartUnit; | |
Overview |
Refer to Implementing Annotations. |
Remarks
(Read Only) Gets a value that indicates the unit of measure for the total length of all rulers, found in the TotalDistance property. 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 |
Please note that if the TotalRulerUnit property is ANN_UNIT_SMART_METRIC or ANN_UNIT_SMART_ENGLISH, then the actual unit of measure can be found in the TotalSmartUnit property. If the TotalRulerUnit property is not ANN_UNIT_SMART_METRIC or ANN_UNIT_SMART_ENGLISH, then both the TotalRulerUnit property and the TotalSmartUnit property contain the unit of measure.
A "smart unit" is a unit that can be automatically promoted to the next higher unit.
For example, suppose you have a ruler that is 13 inches long. If the units of the ruler are ANN_UNIT_INCHES, then the length is 13. However, if the units of the ruler are ANN_UNIT_SMART_ENGLISH, then the length of the ruler is automatically promoted to feet. The length in this case would be 1.0833 feet.
See Also
Elements: |
AnnGetDistance2 method, Distance property, TotalDistance property, TotalRulerUnit property, RulerUnit property, SmartUnit property, DistanceCount property |
Topics: |
|
|