SelectionMarginEnabled 类

定义

定义用于启用选定内容边距的选项。

public ref class SelectionMarginEnabled sealed : Microsoft::VisualStudio::Text::Editor::ViewOptionDefinition<bool>
public ref class SelectionMarginEnabled sealed : Microsoft::VisualStudio::Text::Editor::ViewOptionDefinition<bool>
class SelectionMarginEnabled sealed : Microsoft::VisualStudio::Text::Editor::ViewOptionDefinition<bool>
[Microsoft.VisualStudio.Utilities.Name("TextViewHost/SelectionMargin")]
[System.ComponentModel.Composition.Export(typeof(Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition))]
public sealed class SelectionMarginEnabled : Microsoft.VisualStudio.Text.Editor.ViewOptionDefinition<bool>
[<Microsoft.VisualStudio.Utilities.Name("TextViewHost/SelectionMargin")>]
[<System.ComponentModel.Composition.Export(typeof(Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition))>]
type SelectionMarginEnabled = class
    inherit ViewOptionDefinition<bool>
Public NotInheritable Class SelectionMarginEnabled
Inherits ViewOptionDefinition(Of Boolean)
继承
属性

构造函数

SelectionMarginEnabled()

初始化 SelectionMarginEnabled 的新实例。

属性

Default

获取默认值,该值为 true

DefaultValue

获取选项的默认值。

(继承自 EditorOptionDefinition<T>)
Key

获取默认文本视图宿主值。

Name

获取选项的名称。

(继承自 EditorOptionDefinition<T>)
ValueType

获取选项的实际类型。

(继承自 EditorOptionDefinition<T>)

方法

Equals(Object)

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

(继承自 EditorOptionDefinition)
GetHashCode()

获取此类型的哈希代码。

(继承自 EditorOptionDefinition)
IsApplicableToScope(IPropertyOwner)

确定选项是否适用于指定范围。

(继承自 ViewOptionDefinition<T>)
IsValid(Object)

确定建议的值是否有效。

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

确定建议的值是否有效。

(继承自 EditorOptionDefinition<T>)

适用于