Draws a standard selection frame in the specified state, on the specified graphics surface, with the specified inner and outer dimensions, and with the specified background color.
[Visual Basic] Public Shared Sub DrawSelectionFrame( _ ByVal graphics As Graphics, _ ByVal active As Boolean, _ ByVal outsideRect As Rectangle, _ ByVal insideRect As Rectangle, _ ByVal backColor As Color _ ) [C#] public static void DrawSelectionFrame( Graphics graphics, bool active, Rectangle outsideRect, Rectangle insideRect, Color backColor ); [C++] public: static void DrawSelectionFrame( Graphics* graphics, bool active, Rectangle outsideRect, Rectangle insideRect, Color backColor ); [JScript] public static function DrawSelectionFrame( graphics : Graphics, active : Boolean, outsideRect : Rectangle, insideRect : Rectangle, backColor : Color );
- The Graphics to draw on.
- true to draw the selection frame in an active state; otherwise, false.
- The Rectangle that represents the outer boundary of the selection frame.
- The Rectangle that represents the inner boundary of the selection frame.
- The Color of the background behind the frame.
A selection frame is a frame that is drawn around a selected component at design time.
The backColor parameter is used to calculate the fill color of the frame so that it is always visible against the background.
If the active parameter is set to true, the selection frame is drawn as a set of hatch marks indicating that the component has been activated; otherwise, the selection frame is drawn with a dotted pattern or nothing, depending on the implementation.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family