次の方法で共有


Completor.TypeLeft Method

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'宣言
Public Sub TypeLeft ( _
    len As Integer _
)
public void TypeLeft(
    int len
)

Parameters

  • len
    Type: System.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.

.NET Framework Security

See Also

Reference

Completor Class

Microsoft.VisualStudio.Package Namespace