Graphics.FillRegion メソッド
アセンブリ: System.Drawing (system.drawing.dll 内)




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

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


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

- Graphics.FillRegion メソッドのページへのリンク