MajorUnitsInterval Property
Syntax
CWTicks.MajorUnitsInterval
Data Type
Purpose
Specifies the number of units between major divisions.
Remarks
MajorDivisions must be set to 0 for this property to take effect. Set the MajorDivisions and MajorUnitsInterval properties to 0 to have no major ticks.
Set this property to 5 and MajorUnitsBase to 0 to place major tick marks at multiples of five.
Example
'Specify that ticks are determined by MajorUnitsInterval
CWGraph1.Axes(1).Ticks.MajorDivisions = 0
'Place major ticks every 2 units (even numbers)
CWGraph1.Axes(1).Ticks.MajorUnitsInterval = 2
'Place minor ticks every .5 units
CWGraph1.Axes(1).Ticks.MinorUnitsInterval = .5
'The units base is 0
CWGraph1.Axes(1).Ticks.MajorUnitsBase = 0
'To specify ticks at odd numbers, change the base to 1
CWGraph1.Axes(1).Ticks.MajorUnitsBase = 1
'Now, there will be major ticks at ..., -3, -1, 1, 3, 5, ...