Partager via


_Chart.Axes Method

Returns an object that represents either a single axis or a collection of the axes on the chart.

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

Syntax

'Declaration
Function Axes ( _
    Type As Object, _
    AxisGroup As XlAxisGroup _
) As Object
'Usage
Dim instance As _Chart
Dim Type As Object
Dim AxisGroup As XlAxisGroup
Dim returnValue As Object

returnValue = instance.Axes(Type, AxisGroup)
Object Axes(
    Object Type,
    XlAxisGroup AxisGroup
)

Parameters

  • Type
    Type: System.Object

    Optional Object. Specifies the axis to return. Can be one of the following XlAxisType constants: xlValue, xlCategory, or xlSeriesAxis (xlSeriesAxis is valid only for 3-D charts).

Return Value

Type: System.Object

See Also

Reference

_Chart Interface

_Chart Members

Microsoft.Office.Interop.Excel Namespace