Source.GetHiddenTextSession Method

Definition

Gets the hidden region manager if available.

public:
 Microsoft::VisualStudio::TextManager::Interop::IVsHiddenTextSession ^ GetHiddenTextSession();
public:
 Microsoft::VisualStudio::TextManager::Interop::IVsHiddenTextSession ^ GetHiddenTextSession();
Microsoft::VisualStudio::TextManager::Interop::IVsHiddenTextSession GetHiddenTextSession();
public Microsoft.VisualStudio.TextManager.Interop.IVsHiddenTextSession GetHiddenTextSession ();
member this.GetHiddenTextSession : unit -> Microsoft.VisualStudio.TextManager.Interop.IVsHiddenTextSession
Public Function GetHiddenTextSession () As IVsHiddenTextSession

Returns

If successful, returns an IVsHiddenTextSession object representing the hidden region manager; otherwise returns null.

Remarks

The IVsHiddenTextSession object is obtained from Visual Studio. This method is normally not called unless outlining is enabled (the OutliningEnabled property returns true).

The IVsHiddenTextSession manages hidden regions in a source file.

Applies to