Bahasa

VisualStyleRenderer.DrawEdge Metode

Definisi

Menggambar satu atau beberapa tepi persegi panjang pembatas yang ditentukan.

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

Parameter

dc
IDeviceContext

yang IDeviceContext digunakan untuk menggambar tepi.

bounds
Rectangle

Yang Rectangle batasnya mendefinisikan tepi untuk menggambar.

edges
Edges

Kombinasi bitwise dari Edges nilai.

style
EdgeStyle

Kombinasi bitwise dari EdgeStyle nilai.

effects
EdgeEffects

Kombinasi bitwise dari EdgeEffects nilai.

Mengembalikan

Rectangle Yang mewakili interior bounds parameter, dikurangi tepi yang digambar.

Pengecualian

dc adalah null.

Berlaku untuk