确定范围的选项定义 (以空格数表示) 的缩进。
继承层次结构
Object
Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition
Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition<Int32>
Microsoft.VisualStudio.Text.Editor.IndentSize
命名空间: Microsoft.VisualStudio.Text.Editor
程序集: Microsoft.VisualStudio.Text.Logic(在 Microsoft.VisualStudio.Text.Logic.dll 中)
语法
声明
<ExportAttribute(GetType(EditorOptionDefinition))> _
<NameAttribute("Tabs/IndentSize")> _
Public NotInheritable Class IndentSize _
Inherits EditorOptionDefinition(Of Integer)
[ExportAttribute(typeof(EditorOptionDefinition))]
[NameAttribute("Tabs/IndentSize")]
public sealed class IndentSize : EditorOptionDefinition<int>
[ExportAttribute(typeof(EditorOptionDefinition))]
[NameAttribute(L"Tabs/IndentSize")]
public ref class IndentSize sealed : public EditorOptionDefinition<int>
[<Sealed>]
[<ExportAttribute(typeof(EditorOptionDefinition))>]
[<NameAttribute("Tabs/IndentSize")>]
type IndentSize =
class
inherit EditorOptionDefinition<int>
end
public final class IndentSize extends EditorOptionDefinition<int>
IndentSize 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
IndentSize | 初始化 IndentSize 的新实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
Default | 获取默认值 (4)。 (重写 EditorOptionDefinition<T>.Default。) |
![]() |
DefaultValue | 获取选项的默认值。 (继承自 EditorOptionDefinition<T>。) |
![]() |
Key | 获取编辑器选项键。 (重写 EditorOptionDefinition<T>.Key。) |
![]() |
Name | 获取选项的名称。 (继承自 EditorOptionDefinition<T>。) |
![]() |
ValueType | 获取选项的实际类型。 (继承自 EditorOptionDefinition<T>。) |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Equals | 确定两个 EditorOptionDefinition 对象是否相同。 (继承自 EditorOptionDefinition。) |
![]() |
GetHashCode | 获取此类型的哈希代码。 (继承自 EditorOptionDefinition。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
IsApplicableToScope | 确定此选项是否适用于给定范围(例如,文本缓冲区)。 (继承自 EditorOptionDefinition。) |
![]() |
IsValid(Object%) | 确定所建议的值是否有效。 (继承自 EditorOptionDefinition<T>。) |
![]() |
IsValid(Int32%) | 确定给定的缩进大小是否有效。 (重写 EditorOptionDefinition<T>.IsValid(Object%)。) |
![]() |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。