EditorOptionDefinition(T) Class

Represents the definition of an editor option.

System.Object
  Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition
    Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition(T)
      More...

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

[<AbstractClass>]
type EditorOptionDefinition<'T> =  
    class 
        inherit EditorOptionDefinition 
    end

Type Parameters

T

The type of the option.

The EditorOptionDefinition(T) type exposes the following members.

  NameDescription
Protected methodEditorOptionDefinition(T)Initializes a new instance of EditorOptionDefinition(T).
Top

  NameDescription
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.)
Top

  NameDescription
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.)
Top

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

[Export(typeof(EditorOptionDefinition))]

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft