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


IScaleMarks Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IS > IScaleMarks Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IScaleMarks Interface

Provides access to members that control the scale bar mark properties.

Product Availability

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

Members

Name Description
Read/write property DivisionMarkHeight Height of division marks in points (1/72 inch). Use esriAutoScaleBar to automatically calculate.
Read/write property DivisionMarkSymbol Symbol used to draw the division marks.
Read/write property MarkFrequency Mark frequency.
Read/write property MarkPosition Vertical positioning of the marks relative to the bar.
Read/write property SubdivisionMarkHeight Height of subdivision marks in points (1/72 inch). Use esriAutoScaleBar to automatically calculate.
Read/write property SubdivisionMarkSymbol Symbol used to draw the subdivision marks.

CoClasses that implement IScaleMarks

CoClasses and 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.

Remarks

The IScaleMarks interface manages all of the properties of a scale bar that relate to the individual marks, including the division and subdivision marks heights and symbols, the marks frequency, and their position.

On the scale bar above, the tallest marks are the divisions and the smallest the subdivisions. You can control their height by setting the DivisionMarkHeight and SubdivisionMarkHeight properties.

You can also define the line symbols used for divisions and subdivisions with DivisionMarkSymbol and SubdivisionMarkSymbol. In this example the symbols where redefined as cartographic line symbols with butt ends.

The MarkPosition is an esriVertPosEnum constant that defines the position of the marks relatively to the line. On our example it is set to esriOn which results in marks centered on the line.

The MarkFrequency is an esriScaleBarFrequency constant that defines on which divisions and subdivisions the marks will be shown. Our example uses the value esriScaleBarDivisionsAndFirstSubdivisions to display the subdivisions only between the first divisions.