FMX.Graphics.TPathData.LineTo
Delphi
procedure LineTo(const P: TPointF);
C++
void __fastcall LineTo(const System::Types::TPointF &P);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TPathData |
Description
Appends a line to the current TPathData.
The line is defined by the end point of the TPathData and a specified point.
The P
parameter specifies the end point of the line to be added.
To move the start point of the line, call MoveTo or MoveToRel before calling LineTo.
LineTo adds P
to Points. The added point is of type LineTo.
To find the end point of the TPathData, call the LastPoint method.
To see the difference between the results of LineTo and LineToRel, see the following table:
Initial Path | LineTo(PointF(a,b)) Result | LineToRel(PointF(a,b)) Result |
---|---|---|
See Also
- FMX.Graphics.TPathData.Points
- FMX.Graphics.TPathPointKind
- FMX.Graphics.TPathData.ClosePath
- FMX.Graphics.TPathData.CurveTo
- FMX.Graphics.TPathData.CurveToRel
- FMX.Graphics.TPathData.HLineTo
- FMX.Graphics.TPathData.HLineToRel
- FMX.Graphics.TPathData.LineToRel
- FMX.Graphics.TPathData.LastPoint
- FMX.Graphics.TPathData.MoveTo
- FMX.Graphics.TPathData.MoveToRel
- FMX.Graphics.TPathData.SmoothCurveTo
- FMX.Graphics.TPathData.SmoothCurveToRel
- FMX.Graphics.TPathData.VLineTo
- FMX.Graphics.TPathData.VLineToRel