class TCursorSelection |
The cursor or cursor selection within a document.
If the cursor and anchor position differ, the selection covers the text from the lower to the higher position, not including the character after the higher position. If the selection is changed (by shift plus arrow keys in many UIs) the cursor position changes and the anchor remains the same.
Public Member Functions | |
---|---|
TCursorSelection () | |
TCursorSelection ( TInt , TInt ) | |
TInt | HigherPos () |
TInt | Length () |
TInt | LowerPos () |
void | SetSelection ( TInt , TInt ) |
Public Attributes | |
---|---|
TInt | iAnchorPos |
TInt | iCursorPos |
TCursorSelection | ( | ) | [inline] |
Constructs the TCursorSelection object initialising the cursor and anchor positions to zero.
TCursorSelection | ( | TInt | aCursorPos, |
TInt | aAnchorPos | ||
) | [inline] |
Constructs the TCursorSelection object with a cursor and anchor position.
void | SetSelection | ( | TInt | aCursorPos, |
TInt | aAnchorPos | |||
) | [inline] |
Sets the cursor and anchor positions for the selection.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.