语言

VisualStyleRenderer.DrawEdge 方法

定义

绘制指定边界矩形的一个或多个边缘。

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

参数

dc
IDeviceContext

IDeviceContext用于绘制边缘。

bounds
Rectangle

其 Rectangle 边界定义要绘制的边缘。

edges
Edges

值的按位组合 Edges 。

style
EdgeStyle

值的按位组合 EdgeStyle 。

effects
EdgeEffects

值的按位组合 EdgeEffects 。

返回

一个 Rectangle 表示参数的内部 bounds ,减去绘制的边缘。

例外

dc 是 null。

适用于