Graphics.FillRectangle
FillRectangle(Brush, Rectangle)
によって指定された長方形の内部を塗りつぶします。Rectangle構造体.
public void FillRectangle(Brush brush, Rectangle rect)
| パラメータ | タイプ | 説明 |
|---|
| brush | Brush | Brush塗りつぶしの特性を決定します。 |
| rect | Rectangle | Rectangle塗りつぶす四角形を表す構造体。 |
例外
| 例外 | 調子 |
|---|
| ArgumentNullException | brush無効である。 |
関連項目
FillRectangle(Brush, RectangleF)
によって指定された長方形の内部を塗りつぶします。RectangleF構造体.
public void FillRectangle(Brush brush, RectangleF rect)
| パラメータ | タイプ | 説明 |
|---|
| brush | Brush | Brush塗りつぶしの特性を決定します。 |
| rect | RectangleF | RectangleF塗りつぶす四角形を表す構造体。 |
例外
| 例外 | 調子 |
|---|
| ArgumentNullException | brush無効である。 |
関連項目
FillRectangle(Brush, float, float, float, float)
座標のペア、幅と高さで指定された長方形の内部を塗りつぶします。
public void FillRectangle(Brush brush, float x, float y, float width, float height)
| パラメータ | タイプ | 説明 |
|---|
| brush | Brush | Brush塗りつぶしの特性を決定します。 |
| x | Single | 塗りつぶす四角形の左上隅の x 座標。 |
| y | Single | 塗りつぶす四角形の左上隅の y 座標。 |
| width | Single | 塗りつぶす四角形の幅。 |
| height | Single | 塗りつぶす四角形の高さ。 |
例外
| 例外 | 調子 |
|---|
| ArgumentNullException | brush無効である。 |
関連項目
FillRectangle(Brush, int, int, int, int)
座標のペア、幅と高さで指定された長方形の内部を塗りつぶします。
public void FillRectangle(Brush brush, int x, int y, int width, int height)
| パラメータ | タイプ | 説明 |
|---|
| brush | Brush | Brush塗りつぶしの特性を決定します。 |
| x | Int32 | 塗りつぶす四角形の左上隅の x 座標。 |
| y | Int32 | 塗りつぶす四角形の左上隅の y 座標。 |
| width | Int32 | 塗りつぶす四角形の幅。 |
| height | Int32 | 塗りつぶす四角形の高さ。 |
例外
| 例外 | 調子 |
|---|
| ArgumentNullException | brush無効である。 |
関連項目