Table of Contents

ITMSFNCCustomPDFRichTextLib.GetForegroundColor Method

Returns the foreground text color for the specified text range.

API unit family: TMSFNCPDFRichTextLib Declaring type: ITMSFNCCustomPDFRichTextLib

Syntax

function GetForegroundColor(AStart: Integer = -1; ALength: Integer = -1): TTMSFNCGraphicsColor;

Parameters

Name Description
AStart Zero-based start index; -1 uses the selection start.
ALength Number of characters; -1 uses the selection length.

Returns

Foreground color of the text characters; gcNull when no explicit foreground color is set.