EditorOptionDefinition<T> Class

Definition

Represents the definition of an editor option.

public abstract class EditorOptionDefinition<T> : Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition
Type Parameters
T

The type of the option.

Inheritance
EditorOptionDefinition<T>
Derived

Remarks

This is a MEF component part, and should be exported with:

[Export(typeof(EditorOptionDefinition))]  

Constructors

EditorOptionDefinition<T>()

Initializes a new instance of EditorOptionDefinition<T>.

Properties

Default

Gets the default value of this option.

DefaultValue

Gets the default value of the option.

Key

Gets the key of this option.

Name

Gets the name of the option.

ValueType

Gets the actual type of the option.

Methods

IsValid(Object)

Determines whether the proposed value is valid.

IsValid(T)

Determines whether the proposed value is valid.

Equals(Object) Inherited from EditorOptionDefinition
GetHashCode() Inherited from EditorOptionDefinition
IsApplicableToScope(IPropertyOwner) Inherited from EditorOptionDefinition

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to