共用方式為


ProgressBarRenderer.DrawHorizontalBar(Graphics, Rectangle) 方法

定義

會畫出一個空白的進度條控制,橫向填滿。

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

參數

g
Graphics

它們 Graphics 用來繪製進度條。

bounds
Rectangle

Rectangle 個決定了進度條的範圍。

例外狀況

作業系統不支援視覺樣式。

-或-

視覺樣式則由使用者在作業系統中停用。

-或-

視覺樣式不會套用到應用程式視窗的用戶端區域。

備註

在使用此方法之前,您應該確認屬性是否 IsSupported 返回 true

適用於