Plot.DrawResetState

Prototypes

void DrawResetState()

Remarks

This method resets the drawing subsystem to its default state. The state includes the brush characteristics, the pen characteristics, the text characteristics, the active drawing region, and the active coordinate system. The default state has

Example
x = { 1 2 3 4 5 6 7 8 };
y = { 2 1 4 5 6 5 6 9 };
declare ScatterPlot plot;
plot = ScatterPlot.Create( "Sample Data", x, y );
plot.DrawSetPenColor( CYAN );
plot.DrawSetPenStyle( DASHED );
plot.DrawSetPenWidth( 3 );
plot.DrawSetBrushColor( RED );
plot.DrawUseDataCoordinates();
plot.DrawRectangle( 2, 5, 4, 7, true );
plot.DrawResetState();
plot.DrawUseDataCoordinates();
plot.DrawRectangle( 4, 3, 6, 5, true );
See Also

Plot.DrawPopState
Plot.DrawPushState