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.DrawReversibleFrame

Draws a rectangular frame 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 DrawReversibleFrame( _
   ByVal rectangle As Rectangle, _
   ByVal backColor As Color, _
   ByVal style As FrameStyle _
)
[C#]
public static void DrawReversibleFrame(
   Rectangle rectangle,
   Color backColor,
   FrameStyle style
);
[C++]
public: static void DrawReversibleFrame(
   Rectangle rectangle,
   Color backColor,
   FrameStyle style
);
[JScript]
public static function DrawReversibleFrame(
   rectangle : Rectangle,
   backColor : Color,
   style : FrameStyle
);

Parameters

rectangle
The rectangle in which to fill, in screen coordinates.
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.
style
The style of the rectangle.

See Also

ControlPaint Class | ControlPaint Members | System.WinForms Namespace | FrameStyle