AnnGetUnit method (Annotation Control)
Builder Syntax |
int AnnGetUnit (HANNOBJECT hObject, AnsiString &strUnitAbbrev, unsigned &uUnit, unsigned &uPrecision); |
Delphi Syntax |
Function AnnGetUnit (hObject: HANNOBJECT; var strUnitAbbrev: String; var uUnit: L_UINT; var uPrecision: L_UINT ): L_INT; |
Overview |
Remarks
(Document/Medical only) Gets the current unit of measurement values set by the AnnSetUnit method. The following annotation objects utilize one or more rulers as part of the annotation:
To determine the unit of measure for each ruler, check the AnnRulerUnit property and the AnnSmartUnit property. The default unit of measure for ruler, polyruler, and crossproduct objects is smart English. With the smart units, the unit changes with the length. For example, if the length is 11 inches (assuming the default precision of 2 is being used), "11.00 in" displays whereas if the length is 15 inches, "1 ft 3.00 in" displays. Use the AnnSetUnit method to set the unit of measurement and its precision for the ruler. The precision indicates how many digits to display to the right of the decimal point in the length. Use the AnnGetUnit method to get the unit of measurement and its precision for the ruler. The AnnGetDistance2 method updates the following properties with information about the ruler(s) contained in the specified object:
See Also
Elements |
AnnSetGaugeLength method, AnnSetUnit method, AnnGetDistance method, AnnGetGaugeLength method |
Topics |
|
|