Condividi tramite


Completor.TypeLeft(Int32) Method

Definition

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

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

Parameters

len
Int32

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

Remarks

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

If the move left operation would move the actual caret before the starting caret position, this method retrieves the text before the starting position (from the line of text cached in the RefreshLine method) and inserts that text into the beginning 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 passed the physical beginning of the line.

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

Applies to