FMX.Graphics.TPathData.LineTo
Delphi
procedure LineTo(const P: TPointF);
C++
void __fastcall LineTo(const System::Types::TPointF &P);
Inhaltsverzeichnis
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TPathData |
Beschreibung
Fügt eine Linie an das aktuelle TPathData-Objekt an.
Die Linie wird durch den Endpunkt des TPathData-Objekts und einen angegebenen Punkt definiert.
Der Parameter P
gibt den Endpunkt der hinzuzufügenden Linie an.
Um den Startpunkt der Linie zu verschieben, rufen Sie die Methode MoveTo oder MoveToRel vor LineTo auf.
LineTo fügt P
zu Points hinzu. Der hinzugefügte Punkt hat den Typ LineTo.
Um den Endpunkt von TPathData zu ermitteln, rufen Sie die Methode LastPoint auf.
Die folgende Tabelle zeigt die Unterschiede zwischen den Ergebnissen von LineTo und LineToRel:
Ursprünglicher Pfad | Ergebnis von LineTo(PointF(a,b)) | Ergebnis von LineToRel(PointF(a,b)) |
---|---|---|
Siehe auch
- 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