IVsOutliningCapableLanguage::CollapseToDefinitions Method (IVsTextLines^, IVsOutliningSession^)
Visual Studio 2015
Outlines a specific range of text in response to the Collapse to Definitions command.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- pTextLines
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^
[in] Pointer to the text buffer.
- pSession
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsOutliningSession^
[in] Pointer to the outlining session object for the text buffer.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsOutliningCapableLanguage::CollapseToDefinitions( [in] IVsTextLines *pTextLines, [in] IVsOutliningSession *pSession );
Call AddOutlineRegions to outline a span of text within the text buffer.
Show: