Share via


Axis.TickMarkSpacing Property

Returns or sets the number of categories or series between tick marks. Applies only to category and series axes. Can be a value from 1 through 31999. Read/write Long.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Property TickMarkSpacing As Integer
    Get
    Set
'Usage
Dim instance As Axis
Dim value As Integer

value = instance.TickMarkSpacing

instance.TickMarkSpacing = value
int TickMarkSpacing { get; set; }

Property Value

Type: System.Int32

Remarks

Use the MajorUnit and MinorUnit properties to set tick-mark spacing on the value axis.

Examples

This example sets the number of categories between tick marks on the category axis of the first chart in the active document.

With ActivePresentation.Slides(1).Shapes(1)

    If .HasChart Then

        .Chart.Axes(xlCategory).TickMarkSpacing= 10

    End If

End With

See Also

Reference

Axis Interface

Axis Members

Microsoft.Office.Interop.PowerPoint Namespace