ActiveTraceIndex property (XY Plot object)
Returns a value indicating which trace in the chart is active. Read-only. Long.
Syntax
XYPlot1
.ActiveTraceIndex
where
XYPlot1
- is the name of an XY Plot object or an expression that evaluates to an XY Plot object.value
- is a parameter of the type Long that returns the active index for the selected trace. The first active index has an index value of zero. If there is no active trace, a -1 is returned.Example
Private Sub SetActiveTraceIndex() Dim index As Long index = XYPlot1.ActiveTraceIndex End Sub
Provide Feedback