Share via


Axis.Crosses Property

Returns or sets the point on the specified axis where the other axis crosses. Read/write Long.

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

Syntax

'Declaration
Property Crosses As XlAxisCrosses
    Get
    Set
'Usage
Dim instance As Axis
Dim value As XlAxisCrosses

value = instance.Crosses

instance.Crosses = value
XlAxisCrosses Crosses { get; set; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.XlAxisCrosses

Remarks

This property isn't available for radar charts. For 3-D charts, this property can only be applied to the value axis and indicates where the plane defined by the category axes crosses the value axis.

This property can be used for both category and value axes. On the category axis, xlMinimum sets the value axis to cross at the first category, and xlMaximum sets the value axis to cross at the last category.

Note that xlMinimum and xlMaximum can have different meanings, depending on the axis.

Examples

This example sets the value axis in for the first chart in the active document to cross the category axis at the maximum x value.

With ActivePresentation.Slides(1).Shapes(1)

     If .HasChart Then

        .Chart.Axes(xlCategory).Crosses= xlMaximum

    End If

End With

See Also

Reference

Axis Interface

Axis Members

Microsoft.Office.Interop.PowerPoint Namespace