Table of Contents

ITMSFNCCustomPDFRichTextLib.GetPlainTextRange Method

Returns the plain text content of the specified character range, stripping all formatting.

API unit family: TMSFNCPDFRichTextLib Declaring type: ITMSFNCCustomPDFRichTextLib

Syntax

function GetPlainTextRange(AStart: Integer = -1; ALength: Integer = -1): String; overload;

Parameters

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

Returns

Plain text string for the specified range with all formatting removed.