Appends a line to the current path.
The line is defined by the end point of the path and a point that depends on the specified parameter. The Y parameter specifies the y-coordinate of the end point of the line. VLineTo adds the end point of the line to the Points array. The end point of the line is moved vertically from the last point of the path to the point with the Y-coordinate equal to Y. The added point is of type LineTo. To move the start point of the line, call MoveTo or MoveToRel before calling VLineTo. The added point is of type LineTo.
To find the end point of the path, call the
LastPoint method.
Namespace: RSGdiPlusGraphics
Delphi |
public |
Parameters
Y
Type: Single
Type: TRSGPPath
The function returns the current path so that you can chain together commands, e.g., aPath.MoveTo(PointF(50,50)).LineTo(PointF(100,100).AddPolygon(Polygon1).AddEllipse(RectF(10,10,200,100)); |