| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Structures Enumerations Style examples Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Methods > ResetProperties Method SharpPlot.ResetProperties MethodAll properties except trellis definitions are returns to default values. public void ResetProperties(); Examplesp.ResetProperties(); This may be required if you have a trellis of several charts, and want properties to persist across some, but not all of them. To reset any individual property to its default value, you can generally call its Set method with no arguments, for example: sp.SetYRange(1000); // Maximumsp.SetYRange(-20,20); // Spansp.SetYRange(); // Return to unset state For a simple scalar property which takes a double, use double.Nan to return it to default. See also ...SharpPlot Members | TrellisStyle Property |