Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Axis Object

Axis Object

Visual Studio .NET 2003

Represents an axis on a chart.

Syntax

Axis

Remarks

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

Example

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

Show:
© 2015 Microsoft