Show: Delphi C++
Display Preferences

FMX.Graphics.TPathData.HLineTo

From RAD Studio API Documentation
Jump to: navigation, search

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

FMXTypesTPathDataInitialPath.PNG

FMXTypesTPathDataHLineTo.PNG

FMXTypesTPathDataHLineToRel.PNG

See Also

Personal tools
In Other Languages
Previous Versions
Assistance