The UnitType property returns or sets the distance unit type for a scale bar. Returns a MVDistUnits.
Syntax
object.UnitType
object.UnitType = UnitType
Parameter |
Type |
Description |
UnitType |
required; unit type |
Example 1
This example returns the type of units used for a scale bar.
Debug.Print ScaleBar.UnitType
Example 2
This example changes the units to feet.
ScaleBar.UnitType = mvDistUnitFeet
Used by: ScaleBar object