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

Draws a standard selection frame. A selection frame is a frame that is drawn around a selected component at design time.

[Visual Basic]
Public Shared Sub DrawSelectionFrame( _
   ByVal g As Graphics, _
   ByVal active As Boolean, _
   ByVal outsideRect As Rectangle, _
   ByVal insideRect As Rectangle, _
   ByVal backColor As Color _
)
[C#]
public static void DrawSelectionFrame(
   Graphics g,
   bool active,
   Rectangle outsideRect,
   Rectangle insideRect,
   Color backColor
);
[C++]
public: static void DrawSelectionFrame(
   Graphics* g,
   bool active,
   Rectangle outsideRect,
   Rectangle insideRect,
   Color backColor
);
[JScript]
public static function DrawSelectionFrame(
   g : Graphics,
   active : Boolean,
   outsideRect : Rectangle,
   insideRect : Rectangle,
   backColor : Color
);

Parameters

g
The graphics object to draw the frame to.
active
If true, the selection frame will consist of a set of hatch marks indicating that the component has been activated. If false, it will either consist of a dotted pattern or nothing, depending on the implementation.
outsideRect
The outer boundary of the selection frame.
insideRect
The innner boundary of the selection frame.
backColor
The background color the frame will be drawn against. This method will ensure that the frame is always visible against this background color.

See Also

ControlPaint Class | ControlPaint Members | System.WinForms Namespace