Freigeben über


IVsExpansionSession.GetSnippetSpan(TextSpan[]) Method

Definition

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.

Applies to