Reference > Methods > ResetProperties Method

SharpPlot.ResetProperties Method

All properties except trellis definitions are returns to default values.

public void ResetProperties();

Example

sp.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


Send comments on this topic
© Dyalog Ltd 2013