Share via


LanguagePreferences.LineNumbers Property

Gets or sets whether or not line numbers are to be shown.

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

Syntax

'Declaration
Public Property LineNumbers As Boolean
'Usage
Dim instance As LanguagePreferences 
Dim value As Boolean 

value = instance.LineNumbers

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

Property Value

Type: System.Boolean
true if line numbers are to be shown, otherwise false.

Remarks

This property is not used in the default managed package framework language service classes.

This property affects the preferences value fLineNumbers.

.NET Framework Security

See Also

Reference

LanguagePreferences Class

LanguagePreferences Members

Microsoft.VisualStudio.Package Namespace