IVsOutliningCapableLanguage.CollapseToDefinitions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Outlines a specific range of text in response to the Collapse to Definitions command.
public:
int CollapseToDefinitions(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pTextLines, Microsoft::VisualStudio::TextManager::Interop::IVsOutliningSession ^ pSession);
public:
int CollapseToDefinitions(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pTextLines, Microsoft::VisualStudio::TextManager::Interop::IVsOutliningSession ^ pSession);
int CollapseToDefinitions(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pTextLines, Microsoft::VisualStudio::TextManager::Interop::IVsOutliningSession const & pSession);
public int CollapseToDefinitions (Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pTextLines, Microsoft.VisualStudio.TextManager.Interop.IVsOutliningSession pSession);
abstract member CollapseToDefinitions : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * Microsoft.VisualStudio.TextManager.Interop.IVsOutliningSession -> int
Public Function CollapseToDefinitions (pTextLines As IVsTextLines, pSession As IVsOutliningSession) As Integer
Parameters
- pTextLines
- IVsTextLines
[in] Pointer to the text buffer.
- pSession
- IVsOutliningSession
[in] Pointer to the outlining session object for the text buffer.
Returns
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.