共用方式為


Completor.TypeBackspace Method

Performs the specified number of backspaces on the line being edited and updates the internal caret position.

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

Syntax

'宣告
Public Sub TypeBackspace ( _
    len As Integer _
)
'用途
Dim instance As Completor
Dim len As Integer

instance.TypeBackspace(len)
public void TypeBackspace(
    int len
)
public:
void TypeBackspace(
    int len
)
member TypeBackspace : 
        len:int -> unit 
public function TypeBackspace(
    len : int
)

Parameters

  • len
    Type: System.Int32
    [in] The number of backspaces to perform.

Remarks

A backspace deletes the character before the caret and moves the caret to the left one space. You cannot backspace beyond the physical beginning of the line.

This operation is the equivalent of typing the Backspace key.

If macro recording is active, a backspace operation of the specified length is added to the macro.

.NET Framework Security

See Also

Reference

Completor Class

Completor Members

Microsoft.VisualStudio.Package Namespace