SetTicks

 

The SetTicks method sets the map collar tick attributes.

 

Syntax

object.SetTicks( Inner, ShowTick, UnitType, TickSpacing, MajorLength, ShowMajorLab, MajorLabOffset, MajorLabFreq, MajorLabAngle, SameMajorLabOrient, ShowMinorTick, Subdiv, MinorLength, ShowMinorLab, MinorLabOffset, MinorLabFreq, MinorLabAngle, SameMinorLabOrient )

 

Parameter

Type

Description

Inner

Boolean

optional; true to set inner tick attributes, false (default) to set outer tick attributes

ShowTick

Boolean

optional; true (default) to display tick marks

UnitType

mvDistUnits

optional; distance unit type, default is mvDistUnitMiles

TickSpacing

Double

optional; tick spacing, default is 100

MajorLength

Integer

optional; major tick mark length in 0.001 of an inch, default is 200

ShowMajorLab

Boolean

optional; true (default) to show major tick mark labels

MajorLabOffset

Integer

optional; offset distance between tick marks and labels in 0.001 of an inch, default is 100

MajorLabFreq

Integer

optional; major label frequency, default is 1

MajorLabAngle

Integer

optional; major label angle, default is 0

SameMajorLabOrient

Boolean

optional; true to draw the horizontal and vertical labels in the same direction, default is false

ShowMinorTick

Boolean

optional; true to show minor ticks, default is false

Subdiv

Integer

optional; number of subdivisions, default is 5

MinorLength

Integer

optional; minor tick mark length in 0.001 of an inch, default is 100

ShowMinorLab

Boolean

optional; true (default) to show minor tick mark labels

MinorLabOffset

Integer

optional; offset distance between tick marks and labels in 0.001 of an inch, default is 100

MinorLabFreq

Integer

optional; minor label frequency, default is 1

MinorLabAngle

Integer

optional; minor label angle, default is 0

SameMinorLabOrient

Boolean

optional; true to draw the horizontal and vertical labels in the same direction, default is false

 

Example

    'SetTicks: create outer tick marks with angled labels

    Collar.SetTicks(Inner:=False, ShowTick:=True, TickSpacing:=500000, ShowMajorLab:=True, MajorLabAngle:=315)

  

    'ShowTick (read-only)

    'Return the state of the outer ticks visibility

    Debug.Print Collar.ShowTick(Inner:=False)

 

    'LabAngle (read-only)

    'Return the value of the outer tick mark label angle

    Debug.Print Collar.LabAngle(Inner:=False)

 

    'SetTicks: create outer tick marks displaying every fifth label

    Collar.SetTicks(Inner:=False, ShowTick:=True, TickSpacing:=500000, ShowMajorLab:=True, MajorLabFreq:=5)

 

    'LabFreq (read-only)

    'Return the value of the outer tick mark label frequency

    Debug.Print Collar.LabFreq(Inner:=False)

 

    'SetTicks: create outer tick marks with labels offset by a half an inch

    Collar.SetTicks(Inner:=False, ShowTick:=True, TickSpacing:=500000, ShowMajorLab:=True, MajorLabOffset:=500)

 

    'LabOffset (read-only)

    'Return the value of the outer tick mark label offset

    Debug.Print Collar.LabOffset(Inner:=False)

 

    'SetTicks: create outer tick marks with minor subdivisions

    Collar.SetTicks(Inner:=False, ShowTick:=True, TickSpacing:=500000, ShowMinorTick:=True, Subdiv:=4)

 

    'ShowMinorTick (read-only)

    'Return the state of the minor ticks visibility

    Debug.Print Collar.ShowMinorTick

 

    'NumSubDivisions (read-only)

    'Return the value of the number of subdivisions

    Debug.Print Collar.NumSubDivisions

 

    'TickSpacing (read-only)

    'Return the spacing of the inner tick marks

    Debug.Print Collar.TickSpacing(Inner:=True)

 

    'SetTicks: create outer tick marks with the same label orientation (all horizontal)

    Collar.SetTicks(Inner:=False, ShowTick:=True, TickSpacing:=2500000, SameMajorLabOrient:=True)

 

    'SameLabOrient (read-only)

    'Return the state of the label orientation

    Debug.Print Collar.SameLabOrient

 

Used by: Collar object