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 参数的内部区域(不包含绘制的边缘)。

例外

dcnull

适用于