/// <summary> /// Clears all settings configured on the graph and resets all properties /// to default values (<see cref="CellSize"/>, <see cref="ScrollOffset"/> etc) /// </summary> public void Reset() { ScrollOffset = new PointF(0, 0); CellSize = new PointF(1, 1); AxisX.Reset(); AxisY.Reset(); Series.Clear(); Annotations.Clear(); GraphColor = null; SetNeedsDisplay(); }
internal void ResetInternal() { Children.Clear(); if (AxisX != null) { AxisX.Reset(); } if (AxisY != null) { AxisY.Reset(); } Axes.Clear(); }