System::Drawing::Drawing2D::GraphicsPath::AddLine method

GraphicsPath::AddLine(const Point&, const Point&) method

Adds the specified line to the path represented by the current object.

void System::Drawing::Drawing2D::GraphicsPath::AddLine(const Point &pt1, const Point &pt2)
ParameterTypeDescription
pt1const Point&The starting point of the line to add
pt2const Point&The ending point of the line to add

See Also

GraphicsPath::AddLine(const PointF&, const PointF&) method

Adds the specified line to the path represented by the current object.

void System::Drawing::Drawing2D::GraphicsPath::AddLine(const PointF &pt1, const PointF &pt2)
ParameterTypeDescription
pt1const PointF&The starting point of the line to add
pt2const PointF&The ending point of the line to add

See Also

GraphicsPath::AddLine(float, float, float, float) method

Adds the specified line to the path represented by the current object.

void System::Drawing::Drawing2D::GraphicsPath::AddLine(float x1, float y1, float x2, float y2)
ParameterTypeDescription
x1floatThe X coordinate of the starting point of the line to add
y1floatThe Y coordinate of the starting point of the line to add
x2floatThe X coordinate of the ending point of the line to add
y2floatThe Y coordinate of the ending point of the line to add

See Also

GraphicsPath::AddLine(int, int, int, int) method

Adds the specified line to the path represented by the current object.

void System::Drawing::Drawing2D::GraphicsPath::AddLine(int x1, int y1, int x2, int y2)
ParameterTypeDescription
x1intThe X coordinate of the starting point of the line to add
y1intThe Y coordinate of the starting point of the line to add
x2intThe X coordinate of the ending point of the line to add
y2intThe Y coordinate of the ending point of the line to add

See Also