public Path AddLine(
PointF p1,
PointF p2
)Public Function AddLine (
p1 As PointF,
p2 As PointF
) As Pathpublic:
Path^ AddLine(
PointF p1,
PointF p2
)member AddLine :
p1 : PointF *
p2 : PointF -> Path If the current figure is not empty or closed, the added line will be connected to the last point of the figure.
When the Path is filled, a single line is not rendered. When the Path is drawn, the right/bottom values of the coordinates are inclusive, so even a single pixel line is rendered.
The parameters are not validated here, but in the moment of drawing the coordinates of the possibly transformed path points must fall into the bounds of an int value; otherwise, an OverflowException will be thrown.