This topic has not yet been rated - Rate this topic

ViewOptionDefinition<T> Class

Defines a ITextView-specific editor option.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
public abstract class ViewOptionDefinition<T> : EditorOptionDefinition<T>

Type Parameters

T

The type of the option.

The ViewOptionDefinition<T> type exposes the following members.

  NameDescription
Protected methodViewOptionDefinition<T>Initializes a new instance of ViewOptionDefinition<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 the option is applicable to the specified scope. (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.
System.Object
  Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition
    Microsoft.VisualStudio.Text.Editor.EditorOptionDefinition<T>
      Microsoft.VisualStudio.Text.Editor.ViewOptionDefinition<T>
        Microsoft.VisualStudio.Text.Editor.AutoScrollEnabled
        Microsoft.VisualStudio.Text.Editor.ChangeTrackingMarginEnabled
        Microsoft.VisualStudio.Text.Editor.CutOrCopyBlankLineIfNoSelection
        Microsoft.VisualStudio.Text.Editor.DragDropEditing
        Microsoft.VisualStudio.Text.Editor.GlyphMarginEnabled
        Microsoft.VisualStudio.Text.Editor.HorizontalScrollBarEnabled
        Microsoft.VisualStudio.Text.Editor.IsViewportLeftClipped
        Microsoft.VisualStudio.Text.Editor.LineNumberMarginEnabled
        Microsoft.VisualStudio.Text.Editor.OutliningMarginEnabled
        Microsoft.VisualStudio.Text.Editor.OverwriteMode
        Microsoft.VisualStudio.Text.Editor.ProduceScreenReaderFriendlyText
        Microsoft.VisualStudio.Text.Editor.SelectionMarginEnabled
        Microsoft.VisualStudio.Text.Editor.UseVirtualSpace
        Microsoft.VisualStudio.Text.Editor.UseVisibleWhitespace
        Microsoft.VisualStudio.Text.Editor.VerticalScrollBarEnabled
        Microsoft.VisualStudio.Text.Editor.ViewProhibitUserInput
        Microsoft.VisualStudio.Text.Editor.WordWrapStyle
        Microsoft.VisualStudio.Text.Editor.ZoomControlEnabled
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.