Partilhar via


WpfViewOptionDefinition<T> Class

Definition

Defines an editor option specific to an IWpfTextView.

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

Type Parameters

T

The type of the option.

Inheritance
Derived

Remarks

This is a MEF component part, and should be exported with: [Export(typeof(EditorOptionDefinition))]

Constructors

WpfViewOptionDefinition<T>()

Initializes a new instance of WpfViewOptionDefinition<T>.

Properties

Default

Gets the default value of this option.

(Inherited from EditorOptionDefinition<T>)
DefaultValue

Gets the default value of the option.

(Inherited from EditorOptionDefinition<T>)
Key

Gets the key of this option.

(Inherited from EditorOptionDefinition<T>)
Name

Gets the name of the option.

(Inherited from EditorOptionDefinition<T>)
ValueType

Gets the actual type of the option.

(Inherited from EditorOptionDefinition<T>)

Methods

Equals(Object)

Determines whether two EditorOptionDefinition objects are the same.

(Inherited from EditorOptionDefinition)
GetHashCode()

Gets the hash code of this type.

(Inherited from EditorOptionDefinition)
IsApplicableToScope(IPropertyOwner)

Determines whether this definition is applicable only to text views.

IsValid(Object)

Determines whether the proposed value is valid.

(Inherited from EditorOptionDefinition<T>)
IsValid(T)

Determines whether the proposed value is valid.

(Inherited from EditorOptionDefinition<T>)

Applies to