Show: Delphi C++
Display Preferences

FMX.Graphics.TPathData.VLineToRel

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure VLineToRel(const Y: Single);

C++

void __fastcall VLineToRel(const float Y);

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 Y parameter specifies the distance to the last point of the current TPathData, on the y-axis.

VLineToRel adds the end point of the line to the Points array. The end point of the line is moved vertically at a distance equal to Y to the last 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 VLineToRel.

To find the last point of the TPathData, call the LastPoint method.

To see the difference between the results of VLineTo and VLineToRel, see the following table:

Initial Path VLineTo(b) Result VLineToRel(b) Result

FMXTypesTPathDataInitialPath.PNG

FMXTypesTPathDataVLineTo.PNG

FMXTypesTPathDataVLineToRel.PNG

See Also

Personal tools
In Other Languages
Previous Versions
Assistance