VisualStyleRenderer.DrawEdge(IDeviceContext, Rectangle, Edges, EdgeStyle, EdgeEffects) 方法

定义

绘制指定边框的一个或多个边缘。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

参数

dc
IDeviceContext

用于绘制边缘的 IDeviceContextThe IDeviceContext used to draw the edges.

bounds
Rectangle

其边界定义了要绘制的边缘的 RectangleThe Rectangle whose bounds define the edges to draw.

edges
Edges

Edges 值的按位组合。A bitwise combination of the Edges values.

style
EdgeStyle

EdgeStyle 值的按位组合。A bitwise combination of the EdgeStyle values.

effects
EdgeEffects

EdgeEffects 值的按位组合。A bitwise combination of the EdgeEffects values.

返回

一个 Rectangle,表示 bounds 参数的内部区域(不包含绘制的边缘)。A Rectangle that represents the interior of the bounds parameter, minus the edges that were drawn.

异常

dcnulldc is null.

适用于