MovePosition Method

[Top]  [Chapter]  [Previous]  [Next]

Applies to

IWPTextCursor

Declaration

void MovePosition(int MoveMode, bool SelectText);

Description

Moves the cursor, optionally select text.

Parameters

MoveMode

0 = LineStart

1 = Line End

2 = Page Up

3 = Page Down

4 = Start of Text (Home)

5 = End of Text

6 = Cursor left

7 = Cursor right

8 = Cursor up

9 = Cursor down

10= Word Left

11= Word Right

12= End of Selection

13= Start of Selection

14= Start of current merge field

15= End of current merge field

SelectText

If parameter SelectText = true the text will be selected from current to new position.


[idh_iwptextcursor_moveposition.htm]    Copyright © 2007 by WPCubed GmbH