FMX.Utils.StringToRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StringToRect(S: string): TRectF;

C++

extern DELPHI_PACKAGE System::Types::TRectF __fastcall StringToRect(System::UnicodeString S);

Properties

Type Visibility Source Unit Parent
function public
FMX.Utils.pas
FMX.Utils.hpp
FMX.Utils FMX.Utils

Description

Returns a TRectF based on the given AnsiString coordinates.

For example, if the coordinates specified through the S parameter are:

  • '(100,200,300,400)', then StringToRect returns a TRectF with Left: 100, Top: 200, Right: 300, and Bottom: 400.
  • '(100.25,200.5,300.25,400.5)', then StringToRect returns a TRectF with Left: 100.25, Top: 200.5, Right: 300.25, and Bottom: 400.5.

See Also