共用方式為


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

適用於