Graphics.IsVisible Method (Single, Single)
Indicates whether the point specified by a pair of coordinates is contained within the visible clip region of this Graphics.
Assembly: System.Drawing (in System.Drawing.dll)
The x-coordinate of the point to test for visibility.
The y-coordinate of the point to test for visibility.
Creates a rectangular clipping region and sets it as the clipping region for the graphics object of the form using Replace.
Creates two points, one inside the clipping region and one outside.
Tests each of the points for visibility and draws only the visible one.
The result is one small red circle, which is within the clip region.
Available since 1.1