MouseWheelZoomEnabled 类

定义用于启用鼠标滚轮缩放的选项。

继承层次结构

Object
  Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition
    Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition<Boolean>
      Microsoft.VisualStudio.Text.Editor.WpfViewOptionDefinition<Boolean>
        Microsoft.VisualStudio.Text.Editor.MouseWheelZoomEnabled

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

语法

声明
<ExportAttribute(GetType(EditorOptionDefinition))> _
<NameAttribute("TextView/MouseWheelZoom")> _
Public NotInheritable Class MouseWheelZoomEnabled _
    Inherits WpfViewOptionDefinition(Of Boolean)
[ExportAttribute(typeof(EditorOptionDefinition))]
[NameAttribute("TextView/MouseWheelZoom")]
public sealed class MouseWheelZoomEnabled : WpfViewOptionDefinition<bool>
[ExportAttribute(typeof(EditorOptionDefinition))]
[NameAttribute(L"TextView/MouseWheelZoom")]
public ref class MouseWheelZoomEnabled sealed : public WpfViewOptionDefinition<bool>
[<Sealed>]
[<ExportAttribute(typeof(EditorOptionDefinition))>]
[<NameAttribute("TextView/MouseWheelZoom")>]
type MouseWheelZoomEnabled =  
    class 
        inherit WpfViewOptionDefinition<bool>
    end
public final class MouseWheelZoomEnabled extends WpfViewOptionDefinition<boolean>

MouseWheelZoomEnabled 类型公开以下成员。

构造函数

  名称 说明
公共方法 MouseWheelZoomEnabled 初始化 MouseWheelZoomEnabled 的新实例。

页首

属性

  名称 说明
公共属性 Default 获取默认值,即 true。 (重写 EditorOptionDefinition<T>.Default。)
公共属性 DefaultValue 获取选项的默认值。 (继承自 EditorOptionDefinition<T>。)
公共属性 Key 获取 WPF 文本视图值。 (重写 EditorOptionDefinition<T>.Key。)
公共属性 Name 获取选项的名称。 (继承自 EditorOptionDefinition<T>。)
公共属性 ValueType 获取选项的实际类型。 (继承自 EditorOptionDefinition<T>。)

页首

方法

  名称 说明
公共方法 Equals 确定两个 EditorOptionDefinition 对象是否相同。 (继承自 EditorOptionDefinition。)
公共方法 GetHashCode 获取此类型的哈希代码。 (继承自 EditorOptionDefinition。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 IsApplicableToScope 确定此定义是否只适用于文本视图。 (继承自 WpfViewOptionDefinition<T>。)
公共方法 IsValid(Object%) 确定所建议的值是否有效。 (继承自 EditorOptionDefinition<T>。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

线程安全

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

请参阅

参考

Microsoft.VisualStudio.Text.Editor 命名空间