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


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

IScaleBar2 Interface

Provides access to members that control the scalebar map surrounds.

Product Availability

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

Members

Name Description
Read/write property BarColor Color used to draw the bar.
Read/write property BarHeight Height of the bar in points (1/72 inch).
Read/write property Division Number of units in one major division.
Read/write property Divisions Total number of divisions (including those before zero).
Read/write property DivisionsBeforeZero Number of divisions to the left of zero.
Read/write property LabelFrequency The label style indicating which marks are labeled.
Read/write property LabelGap Vertical gap between the bar and the labels in points (1/72 inch).
Read/write property LabelPosition Vertical positioning of the mark labels.
Read/write property LabelSymbol Symbol used to draw the labels.
Read/write property NumberFormat Number format.
Read/write property ResizeHint Indicates what happens when scale bar is resized.
Read/write property Subdivisions Number of subdivisions per major division.
Read/write property UnitLabel The unit label.
Read/write property UnitLabelGap Gap between the scale bar and the unit label in points (1/72 inch).
Read/write property UnitLabelPosition Vertical positioning of the unit label.
Read/write property UnitLabelSymbol Unit label symbol.
Read/write property Units The units reported.
Read/write property UseFractionCharacters Indicates if common decimal numbers are replaced by a fraction symbol, i.e., 1/2.
Method UseMapSettings Sets division and units based on map.

Classes that implement IScaleBar2

Classes Description
AlternatingScaleBar A map surround for displaying a single alternating scale bar.
DoubleAlternatingScaleBar A map surround for displaying a double alternating scale bar.
HollowScaleBar A map surround for displaying a hollow scale bar.
ScaleLine A map surround for displaying a scale line.
SingleDivisionScaleBar A map surround for displaying a single division scale bar.
SteppedScaleLine A map surround for displaying a stepped scale line.