DeleteTrace method (XY Plot object)

Removes the specified trace from the chart. Traces are specified by their index number in the Legend\Trace List, starting from zero. This method returns
True
if the trace was successfully removed from the XY Plot, and returns
False
if the trace was not removed (for example, if the specified index was out of range).
Syntax
XYPlot1
.
DeleteTrace
(
traceIndex
) As
Boolean
where
XYPlot1
- is the name of an XY Plot object or an expression that evaluates to an XY Plot object.
traceIndex
- is the index of the trace to delete. The first trace has an index of zero.
Example
Private Sub btnDeleteTrace() Dim result as Boolean Rem Delete the first trace. result = XYPlot1.DeleteTrace(0) End Sub
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal