VisualStyleRenderer.DrawEdge Method (IDeviceContext, Rectangle, Edges, EdgeStyle, EdgeEffects)

 

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
Available since 2.0
Return to top
Show: