次の方法で共有


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

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

See Also

Reference

IVsExpansionSession Interface

Microsoft.VisualStudio.TextManager.Interop Namespace