Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [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