EditorOptionDefinition<T> EditorOptionDefinition<T> EditorOptionDefinition<T> EditorOptionDefinition<T> EditorOptionDefinition<T> Class

Definition

Represents the definition of an editor option.

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

The type of the option.

Inheritance
EditorOptionDefinition<T>EditorOptionDefinition<T>EditorOptionDefinition<T>EditorOptionDefinition<T>EditorOptionDefinition<T>
Derived

Remarks

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

[Export(typeof(EditorOptionDefinition))]  

Constructors

EditorOptionDefinition<T>() EditorOptionDefinition<T>() EditorOptionDefinition<T>() EditorOptionDefinition<T>() EditorOptionDefinition<T>()

Initializes a new instance of EditorOptionDefinition<T>.

Properties

Default Default Default Default Default

Gets the default value of this option.

DefaultValue DefaultValue DefaultValue DefaultValue DefaultValue

Gets the default value of the option.

Key Key Key Key Key

Gets the key of this option.

Name Name Name Name Name

Gets the name of the option.

ValueType ValueType ValueType ValueType ValueType

Gets the actual type of the option.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether two EditorOptionDefinition objects are the same.

(Inherited from EditorOptionDefinition)
GetHashCode() GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Gets the hash code of this type.

(Inherited from EditorOptionDefinition)
IsApplicableToScope(IPropertyOwner) IsApplicableToScope(IPropertyOwner) IsApplicableToScope(IPropertyOwner) IsApplicableToScope(IPropertyOwner) IsApplicableToScope(IPropertyOwner)

Determines whether this option is applicable for the given scope (for example, a text buffer). The default implementation returns true. An option, by default, is applicable to any scope.

(Inherited from EditorOptionDefinition)
IsValid(Object) IsValid(Object) IsValid(Object) IsValid(Object) IsValid(Object)

Determines whether the proposed value is valid.

IsValid(T) IsValid(T) IsValid(T) IsValid(T) IsValid(T)

Determines whether the proposed value is valid.

Extension Methods

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

Microsoft internal use only.

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

Microsoft internal use only.

Applies to