Share via


LanguagePreferences.IndentSize Property

Gets or sets the number of spaces to indent when formatting source.

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

Syntax

'Declaration
Public Property IndentSize As Integer
'Usage
Dim instance As LanguagePreferences 
Dim value As Integer 

value = instance.IndentSize

instance.IndentSize = value
public int IndentSize { get; set; }
public:
property int IndentSize {
    int get ();
    void set (int value);
}
public function get IndentSize () : int 
public function set IndentSize (value : int)

Property Value

Type: System.Int32
The number of spaces to use for tab positions while formatting.

Remarks

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

This property affects the preferences value uIndentSize.

.NET Framework Security

See Also

Reference

LanguagePreferences Class

LanguagePreferences Members

Microsoft.VisualStudio.Package Namespace