Completor.TypeDelete Method
Performs the specified number of delete operations on the line being edited.
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
'Declaração
Public Sub TypeDelete ( _
len As Integer _
)
public void TypeDelete(
int len
)
Parameters
- len
Type: System.Int32
[in] The number of delete operations to perform.
Remarks
A delete operation deletes the character at the current position and shortens the line by the number of characters equal to the number of deletion operations. The internal caret position does not change.
This method is the equivalent of typing the Delete key.
If macro recording is active, a delete operation of the specified length is added to the macro.
The delete operation cannot delete past the end of the line and subsequent delete operations at the same position do nothing. However, all delete operations are passed on to the macro recorder.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.