FMX.Graphics.TPathData.HLineTo
Delphi
procedure HLineTo(const X: Single);
C++
void __fastcall HLineTo(const float X);
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 point that depends on the specified parameter.
The X
parameter specifies the x-coordinate of the end point of the line.
HLineTo adds the end point of the line to the Points array. The end point of the line is moved horizontally from the last point of the TPathData to the point with the x-coordinate equal to X
. The added point is of type LineTo.
To move the start point of the line, call the MoveTo or MoveToRel method before calling HLineTo.
To find the end point of the TPathData, call the LastPoint method.
To see the difference between the results of HLineTo and HLineToRel, see the following table:
Initial Path | HLineTo(a) Result | HLineToRel(a) 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.HLineToRel
- FMX.Graphics.TPathData.LineTo
- 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