次の方法で共有


IVsOutliningCapableLanguage.CollapseToDefinitions Method

Definition

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.

Applies to