共用方式為


ProgressBarRenderer.DrawHorizontalChunks(Graphics, Rectangle) 方法

定義

繪製一組進度條碎片,填滿水平進度條。

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

參數

g
Graphics

它們 Graphics 用來繪製進度條。

bounds
Rectangle

Rectangle那個則指定了進度條塊要填滿的範圍。

例外狀況

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

-或-

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

-或-

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

備註

此方法繪製的每個進度條塊都跨越參數的 bounds 高度。 繪製進度條的數量取決於 的bounds寬度以及屬性回傳的ChunkSpaceThicknessChunkThickness值。

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

適用於