Navigation:  Technical API Reference > General Interfaces and types > IWPTextCursor > Methods >

WordCharAttr Method

Previous pageReturn to chapter overviewNext page

Applies to

IWPTextCursor

Declaration

function WordCharAttr(const AWord: WideString; CaseSensitive: WordBool; OnylActiveText: WordBool; CharAttrIndex: Integer): Integer;

Description

Method to assign a certain character attribute index to certain words in the text.

Parameters

AWord

The word to search for

CaseSensitive

true to work case sensitive

OnlyActiveText

true to only work in current text block

CharAttrIndex

New character attribute index

Category

Character Attributes