Source.OutliningEnabled Property

Gets or sets whether outlining is currently enabled.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)


Public Overridable Property OutliningEnabled As Boolean
public virtual bool OutliningEnabled { get; set; }
virtual property bool OutliningEnabled {
    bool get ();
    void set (bool value);
abstract OutliningEnabled : bool with get, set 
override OutliningEnabled : bool with get, set
function get OutliningEnabled () : boolean 
function set OutliningEnabled (value : boolean)

Property Value

Type: System.Boolean
true if outlining is enabled, otherwise false.


The initial state of outlining is determined by reading the EnableAutoOutlining property on the LanguagePreferences object in the Source class constructor. Outlining uses hidden regions to show or hide sections of text.

See Outlining (Managed Package Framework) for more information about how outlining is supported in a language service.

.NET Framework Security

See Also


Source Class

Microsoft.VisualStudio.Package Namespace

Other Resources

Outlining (Managed Package Framework)