Compartilhar via


LanguagePreferences.IndentSize Property

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.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)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaração
Public Property IndentSize As Integer
public int IndentSize { get; set; }

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

Microsoft.VisualStudio.Package Namespace