Partager via


IVsHiddenTextManager Interface

Definition

Determines whether a hidden text session exists for a given text buffer and creates one if it does not.

public interface class IVsHiddenTextManager
public interface class IVsHiddenTextManager
__interface IVsHiddenTextManager
[System.Runtime.InteropServices.Guid("0E5B1E59-53A7-4636-ADBB-0B23C561E293")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsHiddenTextManager
[System.Runtime.InteropServices.Guid("0E5B1E59-53A7-4636-ADBB-0B23C561E293")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsHiddenTextManager
[<System.Runtime.InteropServices.Guid("0E5B1E59-53A7-4636-ADBB-0B23C561E293")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsHiddenTextManager = interface
[<System.Runtime.InteropServices.Guid("0E5B1E59-53A7-4636-ADBB-0B23C561E293")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsHiddenTextManager = interface
Public Interface IVsHiddenTextManager
Attributes

Remarks

The hidden text manager gives you access to IVsHiddenTextSession, which allows you to enumerate and add to existing hidden text regions, including outlining regions, and to expand and collapse those regions.

Notes to Callers

Call this interface to determine whether a hidden text session exists for a given buffer, and if not, to create a new hidden text session.

Call GetHiddenTextSession(Object, IVsHiddenTextSession) to determine whether a hidden text session already exists for a given text buffer. If a hidden text session does not exist, then you can create a new one by calling CreateHiddenTextSession(UInt32, Object, IVsHiddenTextClient, IVsHiddenTextSession). For this method, you can also specify a hidden text client that will inform you of changes to hidden text regions in the buffer. For more information, see IVsHiddenTextClient.

Methods

CreateHiddenTextSession(UInt32, Object, IVsHiddenTextClient, IVsHiddenTextSession)

Creates a new hidden text session for a text buffer.

GetHiddenTextSession(Object, IVsHiddenTextSession)

Returns the current hidden text session for the specified text buffer, if one exists.

Applies to