ReplaceText Method

[Top]  [Chapter]  [Previous]  [Next]

Applies to

IWPTextCursor

Declaration

function ReplaceText(const Text: WideString; const NewText: WideString; FromStart: WordBool; CaseSensitive: WordBool; WholeWords: WordBool; ReplaceAll: WordBool): Integer;

Description

Replaces Text

Parameters

Text

The text to be replaced

NewText

The replacement text

FromStart

Start at the beginning of the text

CaseSensitive

Work case sensitive

WholeWords

Replace whole words only

ReplaceAll

Replace all

Returns

The count of replacements


[idh_iwptextcursor_replacetext.htm]    Copyright © 2007 by WPCubed GmbH