IVsExpansionSession.GetSnippetSpan(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.
Gets the span of the code snippet.
public:
int GetSnippetSpan(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts);
public:
int GetSnippetSpan(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts);
int GetSnippetSpan(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pts);
public int GetSnippetSpan (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pts);
abstract member GetSnippetSpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Function GetSnippetSpan (pts As TextSpan()) As Integer
Parameters
- pts
- TextSpan[]
[out] The span of the code snippet.
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::GetSnippetSpan(
[out]TextSpan *pts
);
The span returned describes the full position and extent of the code snippet after it has been inserted and formatted.