This document is archived and information here might be outdated.  Recommended version.


IScaleBar.Units Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IS > IScaleBar Interface > IScaleBar.Units Property
ArcGIS Developer Help

IScaleBar.Units Property

The units reported.

[Visual Basic .NET]
Public Property Units As esriUnits
[C#]
public esriUnits Units {get; set;}
[C++]
HRESULT get_Units(
  esriUnits* Units
);
[C++]
HRESULT put_Units(
  esriUnits Units
);
[C++]
Parameters
Units [out, retval]

Units is a parameter of type esriUnits* Units [in]
Units is a parameter of type esriUnits

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Units is the type of distance units (miles, kilometers, etc.) a scalebar displays the interval distances. This unit does not have to be the same as the the units of the data frame that a scalebar is associated with.

See Also

IScaleBar Interface