Share via


Axis.MajorUnitIsAuto Property

True if Microsoft Word calculates the major units for the value axis. Read/write Boolean.

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

Syntax

'Declaration
Property MajorUnitIsAuto As Boolean
    Get
    Set
'Usage
Dim instance As Axis
Dim value As Boolean

value = instance.MajorUnitIsAuto

instance.MajorUnitIsAuto = value
bool MajorUnitIsAuto { get; set; }

Property Value

Type: System.Boolean

Remarks

Setting the MajorUnit property sets this property to False.

Examples

This example automatically 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)

            .MajorUnitIsAuto= True

            .MinorUnitIsAuto = True

        End With

    End If

End With

See Also

Reference

Axis Interface

Axis Members

Microsoft.Office.Interop.PowerPoint Namespace