FMX.Text.TTextWordWrapping.ComputeLineCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function ComputeLineCount(const AText: String; const ACanvas: TCanvas; const AMaxWidth: Integer;  var AResWidth: Integer): Integer;

C++

__classmethod int __fastcall ComputeLineCount(const System::UnicodeString AText, Fmx::Graphics::TCanvas* const ACanvas, const int AMaxWidth, int &AResWidth);

Properties

Type Visibility Source Unit Parent
function public
FMX.Text.pas
FMX.Text.hpp
FMX.Text TTextWordWrapping

Description

Computes the number of lines needed to draw the text supplied for a certain width AMaxWidth.

Also fills the real maximum with what is found.