Freigeben über


DefaultOptionExtensions Class

Extension methods for common general options.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Text.Editor.OptionsExtensionMethods.DefaultOptionExtensions

Namespace:  Microsoft.VisualStudio.Text.Editor.OptionsExtensionMethods
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class DefaultOptionExtensions
public static class DefaultOptionExtensions
[ExtensionAttribute]
public ref class DefaultOptionExtensions abstract sealed
[<AbstractClass>]
[<Sealed>]
type DefaultOptionExtensions =  class end
public final class DefaultOptionExtensions

The DefaultOptionExtensions type exposes the following members.

Methods

  Name Description
Public methodStatic member GetIndentSize Gets the size of an indentation for the specified IEditorOptions.
Public methodStatic member GetNewLineCharacter Gets the newline character or characters for the specified editor options.
Public methodStatic member GetReplicateNewLineCharacter Determines whether to duplicate the newline character or character sequence if it is already present when inserting a newline.
Public methodStatic member GetTabSize Gets the number of spaces for the tab in the specified IEditorOptions.
Public methodStatic member IsConvertTabsToSpacesEnabled Determines whether the option to convert tabs to spaces is enabled in the specified IEditorOptions.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Text.Editor.OptionsExtensionMethods Namespace