FMX.TextLayout.TTextLayout.RegionForRange
Delphi
function RegionForRange(const ARange: TTextRange; const RoundToWord: Boolean = False): TRegion;
C++
Fmx::Graphics::TRegion __fastcall RegionForRange(const TTextRange &ARange, const bool RoundToWord = false);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | FMX.TextLayout.pas FMX.TextLayout.hpp |
FMX.TextLayout | TTextLayout |
Description
Gets the regions of a specified text range from the current text.
ARange specifies the text range for which to get the bounding rectangles.
RegionForRange returns a TRegion, which is an array of rectangles that bounds the ARange within the current text.
Use RegionForRange to get the regions of a specified text range from the current text, specified by starting position and length of text within the current layout.