Axis.MajorUnit Property
Returns or sets the major units for 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 MajorUnit As Double
Get
Set
'Usage
Dim instance As Axis
Dim value As Double
value = instance.MajorUnit
instance.MajorUnit = value
double MajorUnit { get; set; }
Property Value
Type: System.Double
Remarks
Setting this property sets the MajorUnitIsAuto property to False.
Use the TickMarkSpacing 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