IVsExpansionSession::GetEndSpan Method (array<TextSpan>^)
Visual Studio 2015
Returns the position at which the edit caret is to be placed when the code snippet is committed to the source buffer.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Parameters
- pts
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^
[out] The span that is filled in with the position and extent where the edit caret is to be positioned
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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 M:Microsoft.VisualStudio.TextManager.Interop.IVsExpansionSession.SetEndSpan(Microsoft.VisualStudio.TextManager.Interop.TextSpan[]) method.
Show: