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)

[GuidAttribute("0E5B1E59-53A7-4636-ADBB-0B23C561E293")]
[InterfaceTypeAttribute(1)]
public interface IVsHiddenTextManager

NameDescription
System_CAPS_pubmethodCreateHiddenTextSession(UInt32, Object, IVsHiddenTextClient, IVsHiddenTextSession)

Creates a new hidden text session for a text buffer.

System_CAPS_pubmethodGetHiddenTextSession(Object, IVsHiddenTextSession)

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

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.

Return to top
Show: