共用方式為


ControlPaint.DrawVisualStyleBorder(Graphics, Rectangle) 方法

定義

使用適當的樣式繪製停用項目的框線。

public:
 static void DrawVisualStyleBorder(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle bounds);
public static void DrawVisualStyleBorder (System.Drawing.Graphics graphics, System.Drawing.Rectangle bounds);
static member DrawVisualStyleBorder : System.Drawing.Graphics * System.Drawing.Rectangle -> unit
Public Shared Sub DrawVisualStyleBorder (graphics As Graphics, bounds As Rectangle)

參數

graphics
Graphics

要在上面繪製的 Graphics

bounds
Rectangle

Rectangle,表示框線的大小。

適用於