Поделиться через


Chart.HasAxis Property

Returns or sets which axes exist on the chart. Read/write.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.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
    The axis type. Series axes apply only to 3-D charts. Can be one of the XlAxisType constants.
  • Index2
    Type: System.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

You must enter a value for at least one of the parameters when you set this property.

Microsoft PowerPoint 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.PowerPoint Namespace