Table of Contents

TRichString.GetFontForChar Method

Returns the index of the run for the character charIndex in the string. If there is no font for the character, it will return -1.

Syntax

Unit: FlexCel.Core

function TRichString.GetFontForChar(const charIndex: Integer): Integer;

Parameters

<-> Parameter Type Description
const charIndex Integer Index of the character in the string (0 based)

Returns

Run that includes charIndex (0 based)

See also