This topic has not yet been rated - Rate this topic

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
)

Parameters

dc
Type: System.Drawing.IDeviceContext
The IDeviceContext used to draw the edges.
bounds
Type: System.Drawing.Rectangle
The Rectangle whose bounds define the edges to draw.
edges
Type: System.Windows.Forms.VisualStyles.Edges
A bitwise combination of the Edges values.
style
Type: System.Windows.Forms.VisualStyles.EdgeStyle
A bitwise combination of the EdgeStyle values.
effects
Type: System.Windows.Forms.VisualStyles.EdgeEffects
A bitwise combination of the EdgeEffects values.

Return Value

Type: System.Drawing.Rectangle
A Rectangle that represents the interior of the bounds parameter, minus the edges that were drawn.
Exception Condition
ArgumentNullException

dc is null.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ