IVsOutliningCapableLanguage.CollapseToDefinitions Method

Outlines a specific range of text in response to the Collapse to Definitions command.

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

Syntax

声明
Function CollapseToDefinitions ( _
    pTextLines As IVsTextLines, _
    pSession As IVsOutliningSession _
) As Integer
int CollapseToDefinitions(
    IVsTextLines pTextLines,
    IVsOutliningSession pSession
)
int CollapseToDefinitions(
    [InAttribute] IVsTextLines^ pTextLines, 
    [InAttribute] IVsOutliningSession^ pSession
)
abstract CollapseToDefinitions : 
        pTextLines:IVsTextLines * 
        pSession:IVsOutliningSession -> int 
function CollapseToDefinitions(
    pTextLines : IVsTextLines, 
    pSession : IVsOutliningSession
) : 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 textmgr.idl:

HRESULT IVsOutliningCapableLanguage::CollapseToDefinitions(
   [in] IVsTextLines *pTextLines, 
   [in] IVsOutliningSession *pSession
);

Call AddOutlineRegions to outline a span of text within the text buffer.

.NET Framework Security

See Also

Reference

IVsOutliningCapableLanguage Interface

Microsoft.VisualStudio.TextManager.Interop Namespace