IVsOutliningCapableLanguage::CollapseToDefinitions Method (IVsTextLines^, IVsOutliningSession^)

 

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)

int CollapseToDefinitions(
	IVsTextLines^ pTextLines,
	IVsOutliningSession^ pSession
)

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::Int32

If 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.

Return to top
Show: