SharpPlot Reference > SharpPlot Methods > ResetProperties Method

SharpPlot.ResetProperties Method

All properties except trellis definitions are returned to default values.

Some settings can be preserved with ResetOption.

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); // Maximum
sp.SetYRange(-20,20); // Span
sp.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 | SharpPlot.ResetOption Property | SharpPlot.TrellisStyle Property


Send comments on this topic
© Dyalog Ltd 2021