EditorOptionDefinition<T> 类

表示编辑器选项的定义。

继承层次结构

Object
  Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition
    Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition<T>
      更多...

命名空间:  Microsoft.VisualStudio.Text.Editor
程序集:  Microsoft.VisualStudio.Text.Logic(在 Microsoft.VisualStudio.Text.Logic.dll 中)

语法

声明
Public MustInherit Class EditorOptionDefinition(Of T) _
    Inherits EditorOptionDefinition
public abstract class EditorOptionDefinition<T> : EditorOptionDefinition
generic<typename T>
public ref class EditorOptionDefinition abstract : public EditorOptionDefinition
[<AbstractClass>]
type EditorOptionDefinition<'T> =  
    class 
        inherit EditorOptionDefinition 
    end
JScript 不支持泛型类型或方法。

类型参数

  • T
    选项的类型。

EditorOptionDefinition<T> 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 EditorOptionDefinition<T> 初始化 EditorOptionDefinition<T> 的新实例。

页首

属性

  名称 说明
公共属性 Default 获取选项的默认值。
公共属性 DefaultValue 获取选项的默认值。 (重写 EditorOptionDefinition.DefaultValue。)
公共属性 Key 获取选项的键。
公共属性 Name 获取选项的名称。 (重写 EditorOptionDefinition.Name。)
公共属性 ValueType 获取选项的实际类型。 (重写 EditorOptionDefinition.ValueType。)

页首

方法

  名称 说明
公共方法 Equals 确定两个 EditorOptionDefinition 对象是否相同。 (继承自 EditorOptionDefinition。)
受保护的方法 Finalize 在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 获取此类型的哈希代码。 (继承自 EditorOptionDefinition。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 IsApplicableToScope 确定此选项是否适用于给定范围(例如,文本缓冲区)。 (继承自 EditorOptionDefinition。)
公共方法 IsValid(Object%) 确定所建议的值是否有效。 (重写 EditorOptionDefinition.IsValid(Object%)。)
公共方法 IsValid(T%) 确定所建议的值是否有效。
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

备注

这是 MEF 组件部件,应通过:

[Export(typeof(EditorOptionDefinition))]

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Text.Editor 命名空间

继承层次结构

Object
  Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition
    Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition<T>
      Microsoft.VisualStudio.Text.Differencing.DifferenceBufferOption<T>
      Microsoft.VisualStudio.Text.Differencing.DifferenceViewerOption<T>
      Microsoft.VisualStudio.Text.Editor.ConvertTabsToSpaces
      Microsoft.VisualStudio.Text.Editor.DisplayUrlsAsHyperlinks
      Microsoft.VisualStudio.Text.Editor.IndentSize
      Microsoft.VisualStudio.Text.Editor.LongBufferLineChunk
      Microsoft.VisualStudio.Text.Editor.LongBufferLineThreshold
      Microsoft.VisualStudio.Text.Editor.NewLineCharacter
      Microsoft.VisualStudio.Text.Editor.OutliningUndoEnabled
      Microsoft.VisualStudio.Text.Editor.ReplicateNewLineCharacter
      Microsoft.VisualStudio.Text.Editor.TabSize
      Microsoft.VisualStudio.Text.Editor.UseReducedOpacityForHighContrastOption
      Microsoft.VisualStudio.Text.Editor.ViewOptionDefinition<T>
      Microsoft.VisualStudio.Text.Editor.WpfViewOptionDefinition<T>