Export (0) Print
Expand All

ControlPaint.DrawSelectionFrame Method

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.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public static void DrawSelectionFrame (
	Graphics graphics,
	bool active,
	Rectangle outsideRect,
	Rectangle insideRect,
	Color backColor
)
public static void DrawSelectionFrame (
	Graphics graphics, 
	boolean active, 
	Rectangle outsideRect, 
	Rectangle insideRect, 
	Color backColor
)
public static function DrawSelectionFrame (
	graphics : Graphics, 
	active : boolean, 
	outsideRect : Rectangle, 
	insideRect : Rectangle, 
	backColor : Color
)
Not applicable.

Parameters

graphics

The Graphics to draw on.

active

true to draw the selection frame in an active state; otherwise, false.

outsideRect

The Rectangle that represents the outer boundary of the selection frame.

insideRect

The Rectangle that represents the inner boundary of the selection frame.

backColor

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft