IVsExpansionSession::GetSnippetSpan Method (array<TextSpan>^)

 

Gets the span of the code snippet.

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

int GetSnippetSpan(
	array<TextSpan>^ pts
)

Parameters

pts
Type: array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^

[out] The span of the code snippet.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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.

Return to top
Show: