Draws a reversible frame on the screen within the specified bounds, with the specified background color, and in the specified state.
- rectangle
The System.Drawing.Rectangle that represents the dimensions of the rectangle to draw, in screen coordinates.
- backColor
The System.Drawing.Color of the background behind the frame.
- style
One of the System.Windows.Forms.FrameStyle values that specifies the style of the frame.
The backColor parameter is used to calculate the fill color of the frame so that it is always visible against the background.
The results of this method can be reversed by drawing the same frame again. Drawing a frame using this method is similar to inverting a region of the screen, except that it provides better performance for a wider variety of colors.