Udostępnij za pośrednictwem


Source.OutliningEnabled Property

Gets or sets whether outlining is currently enabled.

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

Syntax

'Declaration
Public Overridable Property OutliningEnabled As Boolean
'Usage
Dim instance As Source 
Dim value As Boolean 

value = instance.OutliningEnabled

instance.OutliningEnabled = value
public virtual bool OutliningEnabled { get; set; }
public:
virtual property bool OutliningEnabled {
    bool get ();
    void set (bool value);
}
public function get OutliningEnabled () : boolean 
public function set OutliningEnabled (value : boolean)

Property Value

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

Remarks

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

Reference

Source Class

Source Members

Microsoft.VisualStudio.Package Namespace

Other Resources

Outlining (Managed Package Framework)