Partager via


ExpansionProvider.PositionCaretForEditing Method

Puts the caret in a position suitable for editing.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  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)

Syntax

'Declaration
Public Overridable Function PositionCaretForEditing ( _
    pBuffer As IVsTextLines, _
    ts As TextSpan() _
) As Integer
public virtual int PositionCaretForEditing(
    IVsTextLines pBuffer,
    TextSpan[] ts
)
public:
virtual int PositionCaretForEditing(
    IVsTextLines^ pBuffer, 
    array<TextSpan>^ ts
)
abstract PositionCaretForEditing : 
        pBuffer:IVsTextLines * 
        ts:TextSpan[] -> int  
override PositionCaretForEditing : 
        pBuffer:IVsTextLines * 
        ts:TextSpan[] -> int
public function PositionCaretForEditing(
    pBuffer : IVsTextLines, 
    ts : TextSpan[]
) : int

Parameters

Return Value

Type: Int32
When overridden in derived classes, S_OK if the method succeeds, otherwise an error code.

Implements

IVsExpansionClient.PositionCaretForEditing(IVsTextLines, array<TextSpan[])

Remarks

This method is an implementation of PositionCaretForEditing. By default it does nothing and returns S_OK.

.NET Framework Security

See Also

Reference

ExpansionProvider Class

Microsoft.VisualStudio.Package Namespace