다음을 통해 공유


IVsHiddenTextManager Interface

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

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
<GuidAttribute("0E5B1E59-53A7-4636-ADBB-0B23C561E293")> _
<InterfaceTypeAttribute()> _
Public Interface IVsHiddenTextManager
[GuidAttribute("0E5B1E59-53A7-4636-ADBB-0B23C561E293")]
[InterfaceTypeAttribute()]
public interface IVsHiddenTextManager
[GuidAttribute(L"0E5B1E59-53A7-4636-ADBB-0B23C561E293")]
[InterfaceTypeAttribute()]
public interface class IVsHiddenTextManager
[<GuidAttribute("0E5B1E59-53A7-4636-ADBB-0B23C561E293")>]
[<InterfaceTypeAttribute()>]
type IVsHiddenTextManager =  interface end
public interface IVsHiddenTextManager

The IVsHiddenTextManager type exposes the following members.

Methods

  Name Description
Public method CreateHiddenTextSession Creates a new hidden text session for a text buffer.
Public method GetHiddenTextSession Returns the current hidden text session for the specified text buffer, if one exists.

Top

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

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace