Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [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);


Note