Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


How to select text

A selection can range from a single character to the entire document. The following example code selects the first paragraph.

TInt pos=0;
TUint scanMask=CPlainText::EScanToUnitEnd;
iRichText->ScanParas(pos,scanMask); // get end pos of 1st para
// move cursor to end of para and select it
iTextView->SetDocPosL(pos,ETrue);

[Top]


Note