void DrawSetRegion( int nRegion )
int nRegion
The region to which subsequent drawing commands will be directed. The valid values are PLOTBACKGROUND, PLOTFOREGROUND, and GRAPHFOREGROUND.
This method specifies the active drawing region. The three drawing regions are as follows:
PLOTBACKGROUND
The background of the Plot Area. This drawing region is behind the observation markers. Drawing is clipped to the Plot Area.
PLOTFOREGROUND
The foreground of the Plot Area. This drawing region is in front of the observation markers. Drawing is clipped to the Plot Area.
GRAPHFOREGROUND
The foreground of the Graph Area. This drawing region is in front of the PLOTFOREGROUND region. Drawing is clipped to the Graph Area.
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.DrawSetRegion( PLOTBACKGROUND ); plot.DrawUseDataCoordinates(); plot.DrawSetBrushColor( RED ); plot.DrawRectangle( 2, 3, 6, 7, true );