IndentSize 类

定义

选项定义,用于确定缩进的空格数) (大小。

public ref class IndentSize sealed : Microsoft::VisualStudio::Text::Editor::EditorOptionDefinition<int>
public ref class IndentSize sealed : Microsoft::VisualStudio::Text::Editor::EditorOptionDefinition<int>
class IndentSize sealed : Microsoft::VisualStudio::Text::Editor::EditorOptionDefinition<int>
[Microsoft.VisualStudio.Utilities.Name("Tabs/IndentSize")]
[System.ComponentModel.Composition.Export(typeof(Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition))]
public sealed class IndentSize : Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition<int>
[<Microsoft.VisualStudio.Utilities.Name("Tabs/IndentSize")>]
[<System.ComponentModel.Composition.Export(typeof(Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition))>]
type IndentSize = class
    inherit EditorOptionDefinition<int>
Public NotInheritable Class IndentSize
Inherits EditorOptionDefinition(Of Integer)
继承
属性

构造函数

IndentSize()

初始化 IndentSize 的新实例。

属性

Default

获取默认值 (4) 。

DefaultValue

获取选项的默认值。

(继承自 EditorOptionDefinition<T>)
Key

获取编辑器选项键。

Name

获取选项的名称。

(继承自 EditorOptionDefinition<T>)
ValueType

获取选项的实际类型。

(继承自 EditorOptionDefinition<T>)

方法

Equals(Object)

确定两个 EditorOptionDefinition 对象是否相同。

(继承自 EditorOptionDefinition)
GetHashCode()

获取此类型的哈希代码。

(继承自 EditorOptionDefinition)
IsApplicableToScope(IPropertyOwner)

确定此选项是否适用于给定范围 (例如,文本缓冲区) 。 默认实现返回 true。 默认情况下,选项适用于任何范围。

(继承自 EditorOptionDefinition)
IsValid(Int32)

确定给定的缩进大小是否有效。

IsValid(Object)

确定建议的值是否有效。

(继承自 EditorOptionDefinition<T>)
IsValid(T)

确定建议的值是否有效。

(继承自 EditorOptionDefinition<T>)

适用于