GraphLine Clear Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D.Graphs
Assembly: DeltaEngine.Rendering2D.Graphs (in DeltaEngine.Rendering2D.Graphs.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void Clear()
Remarks

Tests: DeltaEngine.Rendering2D.Graphs.Tests.GraphLineTests
Examples

1 unit tests call DeltaEngine.Rendering2D.Graphs.GraphLine.Clear
[Test, CloseAfterFirstFrame]
public void ClearRemovesAllLinesAndClearsAllPoints()
{
    GraphLine line = CreateLineWithTwoPoints();
    Line2D line2D = line.lines[0];
    Assert.IsTrue(line2D.IsActive);
    line.Clear();
    Assert.AreEqual(0, line.lines.Count);
    Assert.AreEqual(0, line.points.Count);
}
See Also