interface XTextCursor in module com::sun::star::text::

(Global Index)

Syntax

interface XTextCursor : com::sun::star::text::XTextRange ;

Method 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 .

Method Details



collapseToStart

Syntax

oneway void collapseToStart ();

Description

sets the end of the position to the start.


collapseToEnd

Syntax

oneway void collapseToEnd ();

Description

sets the start of the position to the end.


isCollapsed

Syntax

boolean isCollapsed ();

Description

determines if the start and end positions are the same.


goLeft

Syntax

boolean goLeft (
short nCount,
boolean bExpand );

Description

moves the cursor the specified number of characters to the left.


goRight

Syntax

boolean goRight (
short nCount,
boolean bExpand );

Description

moves the cursor the specified number of characters to the right.


gotoStart

Syntax

void gotoStart (
boolean bExpand );

Description

moves the cursor to the start of the text.


gotoEnd

Syntax

void gotoEnd (
boolean bExpand );

Description

moves the cursor to the end of the text.


gotoRange

Syntax

void gotoRange (
com::sun::star::text::XTextRange xRange,
boolean bExpand );

Description

moves or expands the cursor to a specified TextRange .

Top of Page