FMX.Graphics.TPathData.HLineToRel
Delphi
procedure HLineToRel(const X: Single);
C++
void __fastcall HLineToRel(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 distance to the end point of the current TPathData on the x-axis.
HLineToRel adds the end point of the line to the Points array. The end point of the line is moved horizontally by a distance equal to X
to the end point of the TPathData. The added point is of type LineTo.
To move the start point of the line, call the MoveTo or MoveToRel method before calling HLineToRel.
To find the last 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.HLineTo
- 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