WpfViewOptionDefinition<T> Class

Defines an editor option specific to an IWpfTextView.

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

public abstract class WpfViewOptionDefinition<T> : EditorOptionDefinition<T>

Type Parameters

T

The type of the option.

The WpfViewOptionDefinition<T> type exposes the following members.

  NameDescription
Protected methodWpfViewOptionDefinition<T>Initializes a new instance of WpfViewOptionDefinition<T>.
Top

  NameDescription
Public propertyDefaultGets the default value of this option. (Inherited from EditorOptionDefinition<T>.)
Public propertyDefaultValueGets the default value of the option. (Inherited from EditorOptionDefinition<T>.)
Public propertyKeyGets the key of this option. (Inherited from EditorOptionDefinition<T>.)
Public propertyNameGets the name of the option. (Inherited from EditorOptionDefinition<T>.)
Public propertyValueTypeGets the actual type of the option. (Inherited from EditorOptionDefinition<T>.)
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 definition is applicable only to text views. (Overrides EditorOptionDefinition.IsApplicableToScope(IPropertyOwner).)
Public methodIsValid(Object)Determines whether the proposed value is valid. (Inherited from EditorOptionDefinition<T>.)
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

Community Additions

ADD
Show:
© 2014 Microsoft