Graphics.FillRectangles メソッド (Brush, RectangleF[])
アセンブリ: System.Drawing (system.drawing.dll 内)

Dim instance As Graphics Dim brush As Brush Dim rects As RectangleF() instance.FillRectangles(brush, rects)


次の例は、Windows フォームでの使用を意図してデザインされており、Paint イベント ハンドラのパラメータである PaintEventArgse が必要です。このコードでは次のアクションを実行します。
Public Sub FillRectanglesRectangleF(ByVal e As PaintEventArgs) ' Create solid brush. Dim blueBrush As New SolidBrush(Color.Blue) ' Create array of rectangles. Dim rects As RectangleF() = {New RectangleF(0.0F, 0.0F, 100.0F, 200.0F), _ New RectangleF(100.0F, 200.0F, 250.0F, 50.0F), _ New RectangleF(300.0F, 0.0F, 50.0F, 100.0F)} ' Fill rectangles to screen. e.Graphics.FillRectangles(blueBrush, rects) End Sub
public void FillRectanglesRectangleF(PaintEventArgs e) { // Create solid brush. SolidBrush blueBrush = new SolidBrush(Color.Blue); // Create array of rectangles. RectangleF[] rects = { new RectangleF(0.0F, 0.0F, 100.0F, 200.0F), new RectangleF(100.0F, 200.0F, 250.0F, 50.0F), new RectangleF(300.0F, 0.0F, 50.0F, 100.0F) }; // Fill rectangles to screen. e.Graphics.FillRectangles(blueBrush, rects); }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Graphics.FillRectangles メソッド (Brush, Rectangle[])
アセンブリ: System.Drawing (system.drawing.dll 内)

Dim instance As Graphics Dim brush As Brush Dim rects As Rectangle() instance.FillRectangles(brush, rects)


次の例は、Windows フォームでの使用を意図してデザインされており、Paint イベント ハンドラのパラメータである PaintEventArgse が必要です。このコードでは次のアクションを実行します。
Public Sub FillRectanglesRectangle(ByVal e As PaintEventArgs) ' Create solid brush. Dim blueBrush As New SolidBrush(Color.Blue) ' Create array of rectangles. Dim rects As Rectangle() = {New Rectangle(0, 0, 100, 200), _ New Rectangle(100, 200, 250, 50), _ New Rectangle(300, 0, 50, 100)} ' Fill rectangles to screen. e.Graphics.FillRectangles(blueBrush, rects) End Sub
public void FillRectanglesRectangle(PaintEventArgs e) { // Create solid brush. SolidBrush blueBrush = new SolidBrush(Color.Blue); // Create array of rectangles. Rectangle[] rects = { new Rectangle(0, 0, 100, 200), new Rectangle(100, 200, 250, 50), new Rectangle(300, 0, 50, 100) }; // Fill rectangles to screen. e.Graphics.FillRectangles(blueBrush, rects); }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Graphics.FillRectangles メソッド
Weblioに収録されているすべての辞書からGraphics.FillRectanglesを検索する場合は、下記のリンクをクリックしてください。

- Graphics.FillRectanglesのページへのリンク