Dela via


Source.GetHiddenTextSession Method

Gets the hidden region manager if available.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Function GetHiddenTextSession As IVsHiddenTextSession
'Usage
Dim instance As Source 
Dim returnValue As IVsHiddenTextSession 

returnValue = instance.GetHiddenTextSession()
public IVsHiddenTextSession GetHiddenTextSession()
public:
IVsHiddenTextSession^ GetHiddenTextSession()
public function GetHiddenTextSession() : IVsHiddenTextSession

Return Value

Type: Microsoft.VisualStudio.TextManager.Interop.IVsHiddenTextSession
If successful, returns an IVsHiddenTextSession object representing the hidden region manager; otherwise returns nulla null reference (Nothing in Visual Basic).

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.

.NET Framework Security

See Also

Reference

Source Class

Source Members

Microsoft.VisualStudio.Package Namespace