Table of Contents

TTMSFNCCustomMemo.Replace Method

Replaces a specific range with the supplied text.

API unit family: TMSFNCMemo Declaring type: TTMSFNCCustomMemo

Overloads

Overload 1

Replaces a specific range with the supplied text.

procedure Replace(AStartPos, ALength: Integer; AReplaceString: string); overload;

Parameters

Name Description
AStartPos The start position of the text to replace.
ALength The number of characters to replace.
AReplaceString The replacement text.

Overload 2

Replaces the current selection or active match with the supplied text.

procedure Replace(AReplaceString: string); overload;

Parameters

Name Description
AReplaceString The replacement text.

Overload 3

Searches and replaces text using the supplied options and behavior.

procedure Replace(ASearchString, AReplaceString: string; AOptions: TTMSFNCMemoFindOptions; ABehaviour: TTMSFNCMemoFindBehaviour = fbDown); overload;

Parameters

Name Description
ASearchString The text to search for.
AReplaceString The replacement text.
AOptions The search or replace options to apply.
ABehaviour The search direction or behavior.

Overload 4

Searches and replaces text using the supplied behavior.

procedure Replace(ASearchString, AReplaceString: string; ABehaviour: TTMSFNCMemoFindBehaviour = fbDown); overload;

Parameters

Name Description
ASearchString The text to search for.
AReplaceString The replacement text.
ABehaviour The search direction or behavior.