Show: Delphi C++
Display Preferences

FMX.Graphics.TPathData.HLineToRel

From RAD Studio API Documentation
Jump to: navigation, search

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

FMXTypesTPathDataInitialPath.PNG

FMXTypesTPathDataHLineTo.PNG

FMXTypesTPathDataHLineToRel.PNG

See Also

Personal tools
In Other Languages
Previous Versions
Assistance