Export (0) Print
Expand All

VisualStyleRenderer.DrawEdge Method

Draws one or more edges of the specified bounding rectangle.

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

public Rectangle DrawEdge (
	IDeviceContext dc,
	Rectangle bounds,
	Edges edges,
	EdgeStyle style,
	EdgeEffects effects
)
public Rectangle DrawEdge (
	IDeviceContext dc, 
	Rectangle bounds, 
	Edges edges, 
	EdgeStyle style, 
	EdgeEffects effects
)
public function DrawEdge (
	dc : IDeviceContext, 
	bounds : Rectangle, 
	edges : Edges, 
	style : EdgeStyle, 
	effects : EdgeEffects
) : Rectangle
Not applicable.

Parameters

dc

The IDeviceContext used to draw the edges.

bounds

The Rectangle whose bounds define the edges to draw.

edges

A bitwise combination of the Edges values.

style

A bitwise combination of the EdgeStyle values.

effects

A bitwise combination of the EdgeEffects values.

Return Value

A Rectangle that represents the interior of the bounds parameter, minus the edges that were drawn.

Exception typeCondition

ArgumentNullException

dc is a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, 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

Community Additions

ADD
Show:
© 2014 Microsoft