Share via


IVsExpansionSession.GetEndSpan Method

Returns the position at which the edit caret is to be placed when the code snippet is committed to the source buffer.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Declaration
Function GetEndSpan ( _
    <OutAttribute> pts As TextSpan() _
) As Integer
int GetEndSpan(
    TextSpan[] pts
)
int GetEndSpan(
    [OutAttribute] array<TextSpan>^ pts
)
abstract GetEndSpan : 
        pts:TextSpan[] byref -> int 
function GetEndSpan(
    pts : TextSpan[]
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr2.idl:

HRESULT GetEndSpan(
   [out] TextSpan *pts
);

Typically, a code snippet specifies a marker position in the template file where the edit caret should go when the code snippet is committed to the source buffer. The edit caret position can also be overridden by a call to the SetEndSpan(array<TextSpan[]) method.

.NET Framework Security

See Also

Reference

IVsExpansionSession Interface

Microsoft.VisualStudio.TextManager.Interop Namespace