IVsExpansionSession.SetEndSpan(TextSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the position where the edit caret should be placed when the code snippet is committed to the source buffer.
public:
int SetEndSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan ts);
public:
int SetEndSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan ts);
int SetEndSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan ts);
public int SetEndSpan (Microsoft.VisualStudio.TextManager.Interop.TextSpan ts);
abstract member SetEndSpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan -> int
Public Function SetEndSpan (ts As TextSpan) As Integer
Parameters
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textmgr2.idl:
HRESULT IVsExpansionSession::SetEndSpan(
[in]TextSpan ts
);
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. This method allows that marker position to be overridden or set dynamically.