WordHighlight Method

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

Applies to

IWPTextCursor

Declaration

function WordHighlight(const AWord: WideString; CaseSensitive: WordBool; OnlyActiveText: WordBool; RemoveHighlight: WordBool): Integer;

Description

Applies a temporary highlight flag to certain words

WordHighlight

wpdllInt1.TextCursor.WordHighlight("test",

 false,false,!checkBox1.Checked);

Parameters

AWord

The word to search for

CaseSensitive

true to work case sensitive

OnlyActiveText

true to only work in current text block

RemoveHighlight

false to set highlight, true to remove highlights


[idh_iwptextcursor_wordhighlight_.htm]    Copyright © 2007 by WPCubed GmbH