[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.TextLayout.GetTextRects

GetTextRects Method

GetTextRects(int, int, bool, bool)

Returns the list of TextRect objects for the specified range of code points.

Declaration
public IReadOnlyList<TextRect> GetTextRects(int codePointIndex, int codePointCount, bool withLineGap = false, bool withLineSpacing = false)
Parameters
Type Name Description
int codePointIndex

The code point index of the range start.

int codePointCount

The number of code points in the range.

bool withLineGap

Indicates if the additional spacing before text lines should be included.

bool withLineSpacing

Indicates if the additional spacing after text lines should be included.

Returns
Type Description
IReadOnlyList<TextRect>

A read-only list of text rectangles.