Graphics.DrawLine
DrawLine(Pen, Point, Point)
2 つを結ぶ線を描画しますPoint構造物.
public void DrawLine(Pen pen, Point point1, Point point2)
| パラメータ | タイプ | 説明 |
|---|
| pen | Pen | Pen線の色、幅、およびスタイルを決定します。 |
| point1 | Point | Point接続する最初のポイントを表す構造。 |
| point2 | Point | Point接続する 2 番目のポイントを表す構造。 |
例外
| 例外 | 調子 |
|---|
| ArgumentNullException | pen無効である。 |
関連項目
DrawLine(Pen, PointF, PointF)
2 つを結ぶ線を描画しますPointF構造物.
public void DrawLine(Pen pen, PointF point1, PointF point2)
| パラメータ | タイプ | 説明 |
|---|
| pen | Pen | Pen線の色、幅、およびスタイルを決定します。 |
| point1 | PointF | PointF接続する最初のポイントを表す構造。 |
| point2 | PointF | PointF接続する 2 番目のポイントを表す構造。 |
例外
| 例外 | 調子 |
|---|
| ArgumentNullException | pen無効である。 |
関連項目
DrawLine(Pen, int, int, int, int)
座標ペアで指定された 2 点を結ぶ線を描画します。
public void DrawLine(Pen pen, int x1, int y1, int x2, int y2)
| パラメータ | タイプ | 説明 |
|---|
| pen | Pen | Pen線の色、幅、およびスタイルを決定します。 |
| x1 | Int32 | 最初の点の x 座標。 |
| y1 | Int32 | 最初の点の y 座標。 |
| x2 | Int32 | 2 番目の点の x 座標。 |
| y2 | Int32 | 2 番目の点の y 座標。 |
例外
| 例外 | 調子 |
|---|
| ArgumentNullException | pen無効である。 |
関連項目
DrawLine(Pen, float, float, float, float)
座標ペアで指定された 2 点を結ぶ線を描画します。
public void DrawLine(Pen pen, float x1, float y1, float x2, float y2)
| パラメータ | タイプ | 説明 |
|---|
| pen | Pen | Pen線の色、幅、およびスタイルを決定します。 |
| x1 | Single | 最初の点の x 座標。 |
| y1 | Single | 最初の点の y 座標。 |
| x2 | Single | 2 番目の点の x 座標。 |
| y2 | Single | 2 番目の点の y 座標。 |
例外
| 例外 | 調子 |
|---|
| ArgumentNullException | pen無効である。 |
関連項目