Redigera

Dela via


VisualStyleRenderer.DrawEdge Method

Definition

Draws one or more edges of the specified bounding rectangle.

public:
 System::Drawing::Rectangle DrawEdge(System::Drawing::IDeviceContext ^ dc, System::Drawing::Rectangle bounds, System::Windows::Forms::VisualStyles::Edges edges, System::Windows::Forms::VisualStyles::EdgeStyle style, System::Windows::Forms::VisualStyles::EdgeEffects effects);
public System.Drawing.Rectangle DrawEdge (System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds, System.Windows.Forms.VisualStyles.Edges edges, System.Windows.Forms.VisualStyles.EdgeStyle style, System.Windows.Forms.VisualStyles.EdgeEffects effects);
member this.DrawEdge : System.Drawing.IDeviceContext * System.Drawing.Rectangle * System.Windows.Forms.VisualStyles.Edges * System.Windows.Forms.VisualStyles.EdgeStyle * System.Windows.Forms.VisualStyles.EdgeEffects -> System.Drawing.Rectangle
Public Function DrawEdge (dc As IDeviceContext, bounds As Rectangle, edges As Edges, style As EdgeStyle, effects As EdgeEffects) As Rectangle

Parameters

dc
IDeviceContext

The IDeviceContext used to draw the edges.

bounds
Rectangle

The Rectangle whose bounds define the edges to draw.

edges
Edges

A bitwise combination of the Edges values.

style
EdgeStyle

A bitwise combination of the EdgeStyle values.

effects
EdgeEffects

A bitwise combination of the EdgeEffects values.

Returns

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

Exceptions

dc is null.

Applies to