Axis.CategoryType Property
Returns or sets the category axis type. Read/write [XlCategoryType#SameCHM].
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property CategoryType As XlCategoryType
Get
Set
'Usage
Dim instance As Axis
Dim value As XlCategoryType
value = instance.CategoryType
instance.CategoryType = value
XlCategoryType CategoryType { get; set; }
Property Value
Type: Microsoft.Office.Interop.PowerPoint.XlCategoryType
Remarks
You cannot set this property for a value axis.
Examples
This example sets the category axis for the first chart in the active document to use a time scale, with months as the base unit.
With ActivePresentation.Slides(1).Shapes(1)
If .HasChart Then
With .Chart.Axes(xlCategory)
.CategoryType= xlTimeScale
.BaseUnit = xlMonths
End With
End If
End With