Completor.TypeRight(Int32) Method

Definition

Moves the internal caret position the specified number of positions to the right.

public:
 void TypeRight(int len);
public:
 void TypeRight(int len);
void TypeRight(int len);
public void TypeRight (int len);
member this.TypeRight : int -> unit
Public Sub TypeRight (len As Integer)

Parameters

len
Int32

[in] The number of positions to move to the right.

Remarks

This operation is the equivalent of typing the cursor right key.

If the move right operation would move the actual caret after the starting caret position, this method retrieves the text after the starting position (from the line of text cached in the RefreshLine method) and inserts that text at the end of the StringBuilder object that holds the characters to insert. This method then updates the remembered starting position to reflect the new position.

The internal caret position cannot be moved past the physical end of the line, that is, the end of the original line plus any character insertions that have been made so far.

If macro recording is active, the specified number of move right operations is added to the macro, without regard for the end of the line.

Applies to