Share via


ViewOptionDefinition<T> Class

Definition

Defines a ITextView-specific editor option.

generic <typename T>
public ref class ViewOptionDefinition abstract : Microsoft::VisualStudio::Text::Editor::EditorOptionDefinition<T>
template <typename T>
[Windows::Foundation::Metadata::WebHostHidden]
class ViewOptionDefinition abstract : Microsoft::VisualStudio::Text::Editor::EditorOptionDefinition<T>
public abstract class ViewOptionDefinition<T> : Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition<T>
type ViewOptionDefinition<'T> = class
    inherit EditorOptionDefinition<'T>
Public MustInherit Class ViewOptionDefinition(Of T)
Inherits EditorOptionDefinition(Of T)

Type Parameters

T

The type of the option.

Inheritance
Derived

Remarks

This is a MEF component part, and should be exported with: [Export(typeof(EditorOptionDefinition))]

Constructors

ViewOptionDefinition<T>()

Initializes a new instance of ViewOptionDefinition<T>.

Properties

Default

Gets the default value of this option.

(Inherited from EditorOptionDefinition<T>)
DefaultValue

Gets the default value of the option.

(Inherited from EditorOptionDefinition<T>)
Key

Gets the key of this option.

(Inherited from EditorOptionDefinition<T>)
Name

Gets the name of the option.

(Inherited from EditorOptionDefinition<T>)
ValueType

Gets the actual type of the option.

(Inherited from EditorOptionDefinition<T>)

Methods

Equals(Object)

Determines whether two EditorOptionDefinition objects are the same.

(Inherited from EditorOptionDefinition)
GetHashCode()

Gets the hash code of this type.

(Inherited from EditorOptionDefinition)
IsApplicableToScope(IPropertyOwner)

Determines whether the option is applicable to the specified scope.

IsValid(Object)

Determines whether the proposed value is valid.

(Inherited from EditorOptionDefinition<T>)
IsValid(T)

Determines whether the proposed value is valid.

(Inherited from EditorOptionDefinition<T>)

Applies to