Share via


Axis.MinorUnit Property

Returns or sets the minor units on the value axis. Read/write Double.

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

Syntax

'Declaration
Property MinorUnit As Double
    Get
    Set
'Usage
Dim instance As Axis
Dim value As Double

value = instance.MinorUnit

instance.MinorUnit = value
double MinorUnit { get; set; }

Property Value

Type: System.Double

Remarks

Setting this property sets the MinorUnitIsAuto property to False.

Use the TickLabelSpacing property to set tick mark spacing on the category axis.

Examples

This example sets the major and minor units for the value axis of the first chart in the active document.

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

    If .HasChart Then

        With .Chart.Axes(xlValue)

            .MajorUnit = 100

            .MinorUnit= 20

        End With

    End If

End With

See Also

Reference

Axis Interface

Axis Members

Microsoft.Office.Interop.PowerPoint Namespace