Content for Apache OpenOffice version 3.4.
:: com :: sun :: star :: text ::
|
| interface XTextCursor |
- Base Interfaces
XTextCursor
┗ XTextRange
| XTextRange |
- (referenced interface's summary:)
- describes the object's position in a text.
|
|
- Description
- extends a text range by method to modify its position.
|
| Methods' Summary |
| collapseToStart |
sets the end of the position to the start.
|
| collapseToEnd |
sets the start of the position to the end.
|
| isCollapsed |
determines if the start and end positions are the same.
|
| goLeft |
moves the cursor the specified number of characters to the left.
|
| goRight |
moves the cursor the specified number of characters to the right.
|
| gotoStart |
moves the cursor to the start of the text.
|
| gotoEnd |
moves the cursor to the end of the text.
|
| gotoRange |
moves or expands the cursor to a specified TextRange.
|
| Methods' Details |
collapseToStart
| [oneway] void |
| collapseToStart(); |
- Description
- sets the end of the position to the start.
|
|
collapseToEnd
| [oneway] void |
| collapseToEnd(); |
- Description
- sets the start of the position to the end.
|
|
isCollapsed
- Description
- determines if the start and end positions are the same.
|
|
goLeft
| boolean |
| goLeft( |
[in] short |
nCount, |
| [in] boolean |
bExpand ); |
- Description
- moves the cursor the specified number of characters to the left.
- Parameter nCount
- the number of characters to move.
- Parameter bExpand
- specifies if the current selection of the cursor should
be expanded or not.
- Returns
- true if the command was successfully completed.
false otherwise.
Note: Even if the command was not completed successfully
it may be completed partially. E.g. if it was required to move
5 characters but it is only possible to move 3 false will
be returned and the cursor moves only those 3 characters.
|
|
goRight
| boolean |
| goRight( |
[in] short |
nCount, |
| [in] boolean |
bExpand ); |
- Description
- moves the cursor the specified number of characters to the right.
- Parameter nCount
- the number of characters to move.
- Parameter bExpand
- specifies if the current selection of the cursor should
be expanded or not.
- Returns
- true if the command was successfully completed.
false otherwise.
Note: Even if the command was not completed successfully
it may be completed partially. E.g. if it was required to move
5 characters but it is only possible to move 3 false will
be returned and the cursor moves only those 3 characters.
|
|
gotoStart
| void |
| gotoStart( |
[in] boolean |
bExpand ); |
- Description
- moves the cursor to the start of the text.
|
|
gotoEnd
| void |
| gotoEnd( |
[in] boolean |
bExpand ); |
- Description
- moves the cursor to the end of the text.
|
|
gotoRange
| void |
| gotoRange( |
[in] XTextRange |
xRange, |
| [in] boolean |
bExpand ); |
- Description
- moves or expands the cursor to a specified TextRange.
|
|
Top of Page
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.