Graphics.DrawRectangle
DrawRectangle(Pen, RectangleF)
で指定された長方形を描画しますRectangleF構造体.
public void DrawRectangle(Pen pen, RectangleF rect)
| パラメータ | タイプ | 説明 |
|---|
| pen | Pen | あPen長方形の色、幅、およびスタイルを決定します。 |
| rect | RectangleF | あRectangleF描画する四角形を表す構造体。 |
例外
| 例外 | 調子 |
|---|
| ArgumentNullException | pen無効である。 |
関連項目
DrawRectangle(Pen, Rectangle)
で指定された長方形を描画しますRectangle構造体.
public void DrawRectangle(Pen pen, Rectangle rect)
| パラメータ | タイプ | 説明 |
|---|
| pen | Pen | あPen長方形の色、幅、およびスタイルを決定します。 |
| rect | Rectangle | あRectangle描画する四角形を表す構造体。 |
例外
| 例外 | 調子 |
|---|
| ArgumentNullException | pen無効である。 |
関連項目
DrawRectangle(Pen, float, float, float, float)
座標ペア、幅、高さで指定された長方形を描画します。
public void DrawRectangle(Pen pen, float x, float y, float width, float height)
| パラメータ | タイプ | 説明 |
|---|
| pen | Pen | あPen長方形の色、幅、およびスタイルを決定します。 |
| x | Single | 描画する四角形の左上隅の x 座標。 |
| y | Single | 描画する四角形の左上隅の y 座標。 |
| width | Single | 描画する四角形の幅。 |
| height | Single | 描画する四角形の高さ。 |
例外
| 例外 | 調子 |
|---|
| ArgumentNullException | pen無効である。 |
関連項目
DrawRectangle(Pen, int, int, int, int)
座標ペア、幅、高さで指定された長方形を描画します。
public void DrawRectangle(Pen pen, int x, int y, int width, int height)
| パラメータ | タイプ | 説明 |
|---|
| pen | Pen | Pen長方形の色、幅、およびスタイルを決定します。 |
| x | Int32 | 描画する四角形の左上隅の x 座標。 |
| y | Int32 | 描画する四角形の左上隅の y 座標。 |
| width | Int32 | 描画する四角形の幅。 |
| height | Int32 | 描画する四角形の高さ。 |
例外
| 例外 | 調子 |
|---|
| ArgumentNullException | pen無効である。 |
関連項目