_Chart.HasAxis Property

Returns or sets which axes exist on the chart.

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

Syntax

'Declaration
Property HasAxis ( _
    Index1 As Object, _
    Index2 As Object _
) As Object
    Get
    Set
'Usage
Dim instance As _Chart
Dim Index1 As Object
Dim Index2 As Object
Dim value As Object

value = instance.HasAxis(Index1, Index2)

instance.HasAxis(Index1, Index2) = value
Object this[
    Object Index1,
    Object Index2
] { get; set; }

Parameters

  • Index1
    Type: System.Object

    Optional Object. The axis type. Series axes apply only to 3-D charts. Can be one of the XlAxisType constants.

  • Index2
    Type: System.Object

    Optional Object. The axis group. 3-D charts have only one set of axes. Can be one of the XlAxisGroup constants.

Property Value

Type: System.Object

Remarks

Microsoft Excel may create or delete axes if you change the chart type or the AxisGroup property.

See Also

Reference

_Chart Interface

_Chart Members

Microsoft.Office.Interop.Excel Namespace