Provides access to members that control the scale bar mark properties.
|DivisionMarkHeight||Height of division marks in points (1/72 inch). Use esriAutoScaleBar to automatically calculate.|
|DivisionMarkSymbol||Symbol used to draw the division marks.|
|MarkPosition||Vertical positioning of the marks relative to the bar.|
|SubdivisionMarkHeight||Height of subdivision marks in points (1/72 inch). Use esriAutoScaleBar to automatically calculate.|
|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.|
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.