VisualStyleRenderer.DrawEdge Method
.NET Framework 4
Draws one or more edges of the specified bounding rectangle.
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.RectangleA Rectangle that represents the interior of the bounds parameter, minus the edges that were drawn.
| Exception | Condition |
|---|---|
| ArgumentNullException |
dc is null. |
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.