NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ControlPaint.FillReversibleRectangle

Draws a filled rectangle on the given graphics. The operation of this can be "reversed" by drawing the same rectangle again. This is similar to inverting a region of the screen except that it behaves better for a wider variety of colors.

[Visual Basic]
Public Shared Sub FillReversibleRectangle( _
   ByVal graphics As Graphics, _
   ByVal rectangle As Rectangle, _
   ByVal backColor As Color _
)
[C#]
public static void FillReversibleRectangle(
   Graphics graphics,
   Rectangle rectangle,
   Color backColor
);
[C++]
public: static void FillReversibleRectangle(
   Graphics* graphics,
   Rectangle rectangle,
   Color backColor
);
[JScript]
public static function FillReversibleRectangle(
   graphics : Graphics,
   rectangle : Rectangle,
   backColor : Color
);

Parameters

graphics
The Graphics object to draw on.
rectangle
The rectangle in which to fill.
backColor
The color of the background behind the fill. This color is used to calculate the fill color of the rectangle so it will always be visible against the background.

See Also

ControlPaint Class | ControlPaint Members | System.WinForms Namespace