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 回 。

適用於