FMX.Objects.TLine

From Appmethod Libraries
Jump to: navigation, search

FMX.Objects.TShapeFMX.Controls.TControlFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTLine

Object Pascal

TLine = class(TShape)

C++

class PASCALIMPLEMENTATION TLine : public TShape

Properties

Type Visibility Source Unit Parent
class public
FMX.Objects.pas
FMX.Objects.hpp
FMX.Objects FMX.Objects

Description

TLine defines 2D lines. It inherits TControl and can be used in styles to construct controls.

The end points of the line to draw are defined by the following properties of the TLine object:

  • The shape rectangle and the LineType define the straight-line segment to draw:
    • LineType defines the orientation of the line segment.
    • The intersection points of this line segment with the local rectangle define the end points of the straight-line segment.
  • RotationCenter defines the rotation axis and RotationAngle defines the rotation angle on which the straight-line segment is rotated to obtain the line to draw.

Note: Scaling not only scales the line length proportionally to scaling the factors, but also changes the StrokeThickness of the line proportionally to the scaling factor for each axis.

The parent TControl draws TLine with the Paint method.

To draw TLine, the Paint method uses the drawing pen with the Stroke, StrokeThickness, StrokeCap, StrokeDash, and StrokeJoin properties defined for the TLine object.

See Also