Axis Object

Axis Object

Visual Studio .NET 2003

Represents an axis on a chart.




Three axes are available: x, y, and z. The z axis is visible only when the chart is a 3D chart.


The following example reads the number of label levels present on the x axis using the x Axis object.

Private Sub Command1_Click()
   Dim XAxis As Object
   Dim NumberOfLevels As Integer
   ' Read the number of label level present on the X
   ' Axis.
   Set XAxis = MSChart1.Plot.Axis(VtChAxisIdX, 1)
   NumberOfLevels = XAxis.LabelLevelCount
   MsgBox "Number of Label Levels = " _
   & Str(NumberOfLevels)
End Sub

See Also

Properties, Methods, and Events | AxisGrid Object | AxisScale Object | AxisTitle Object | CategoryScale Object | Intersection Object | Labels Collection

© 2015 Microsoft