IVsExpansionSession.GetSnippetSpan Method
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)
Syntax
'宣言
Function GetSnippetSpan ( _
<OutAttribute> pts As TextSpan() _
) As Integer
int GetSnippetSpan(
TextSpan[] pts
)
int GetSnippetSpan(
[OutAttribute] array<TextSpan>^ pts
)
abstract GetSnippetSpan :
pts:TextSpan[] byref -> int
function GetSnippetSpan(
pts : TextSpan[]
) : int
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.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.