This documentation is archived and is not being maintained.

EditorOptionDefinition<T> Class

Represents the definition of an editor option.


Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

public abstract class EditorOptionDefinition<T> : EditorOptionDefinition

Type Parameters


The type of the option.

The EditorOptionDefinition<T> type exposes the following members.

Protected methodEditorOptionDefinition<T>Initializes a new instance of EditorOptionDefinition<T>.

Public propertyDefaultGets the default value of this option.
Public propertyDefaultValueGets the default value of the option. (Overrides EditorOptionDefinition.DefaultValue.)
Public propertyKeyGets the key of this option.
Public propertyNameGets the name of the option. (Overrides EditorOptionDefinition.Name.)
Public propertyValueTypeGets the actual type of the option. (Overrides EditorOptionDefinition.ValueType.)

Public methodEqualsDetermines whether two EditorOptionDefinition objects are the same. (Inherited from EditorOptionDefinition.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeGets the hash code of this type. (Inherited from EditorOptionDefinition.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsApplicableToScopeDetermines whether this option is applicable for the given scope (for example, a text buffer). (Inherited from EditorOptionDefinition.)
Public methodIsValid(Object)Determines whether the proposed value is valid. (Overrides EditorOptionDefinition.IsValid(Object).)
Public methodIsValid(T)Determines whether the proposed value is valid.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

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


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.