Completor.TypeRight Method
Moves the internal caret position the specified number of positions to the right.
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 TypeRight ( _
len As Integer _
)
public void TypeRight(
int len
)
Parameters
- len
Type: System.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.
.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.