ProvideLanguageServiceAttribute.AutoOutlining Property

Determines if the language service supports automatic outlining.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaration
Public Property AutoOutlining As Boolean
public bool AutoOutlining { get; set; }
public:
property bool AutoOutlining {
    bool get ();
    void set (bool value);
}
member AutoOutlining : bool with get, set
function get AutoOutlining () : boolean 
function set AutoOutlining (value : boolean)

Property Value

Type: System.Boolean
Returns true if the language service supports automatic outlining; otherwise, returns false.

Remarks

Outlining is used to reduce the visual complexity of a program by allowing source code to be collapsed to an outline, which, for example, hides the contents of all methods, showing only the method names. Visual Studio supports explicit outlining where the user can mark a region of source code and hide it. Automatic outlining is supported if a language service can parse a language and automatically generate regions that can be hidden.

This property is specific to the managed package framework (MPF).

The default is true when the corresponding registry entry is accessed through the LanguagePreferences class.

The registry entry looks like this:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\[X.Y]\Languages\Language Services\
  [Language Name]\
    AutoOutlining = reg_dword: 0x00000001

Examples

    [ProvideLanguageService(typeof(MyLanguageService),           // Required
                            MyConstants.languageName,            // Required
                            MyConstants.languageNameResourceID,  // Required
        // Optional language service properties
        AutoOutlining = true,  // Automatic outlining supported
                           )]

.NET Framework Security

See Also

Reference

ProvideLanguageServiceAttribute Class

Microsoft.VisualStudio.Shell Namespace