Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
'Declaration
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
- 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.