DefaultTextViewHostOptions Class

Represents common IWpfTextViewHost-related options.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Text.Editor.DefaultTextViewHostOptions

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

Syntax

'Declaration
Public NotInheritable Class DefaultTextViewHostOptions
public static class DefaultTextViewHostOptions
public ref class DefaultTextViewHostOptions abstract sealed
[<AbstractClass>]
[<Sealed>]
type DefaultTextViewHostOptions =  class end
public final class DefaultTextViewHostOptions

The DefaultTextViewHostOptions type exposes the following members.

Fields

  Name Description
Public fieldStatic member ChangeTrackingId Determines whether to have the change tracking margin.
Public fieldStatic member ChangeTrackingMarginWidthOptionId Determines the width of the change tracking margin.
Public fieldStatic member ChangeTrackingMarginWidthOptionName The name of the option that determines the width of the change tracking margin.
Public fieldStatic member ChangeTrackingName The name of the option that determines whether to have the change tracking margin. The change tracking margins "reset" (lose the change history) when this option is turned off. If it is turned back on, it will track changes from the time the margin is turned on.
Public fieldStatic member ErrorMarginWidthOptionId The option that determines whether to have the change tracking margin. The change tracking margins "reset" (lose the change history) when this option is turned off. If it is turned back on, it will track changes from the time the margin is turned on.
Public fieldStatic member ErrorMarginWidthOptionName The name of the option that determines whether to have the change tracking margin. The change tracking margins "reset" (lose the change history) when this option is turned off. If it is turned back on, it will track changes from the time the margin is turned on.
Public fieldStatic member GlyphMarginId Determines whether to have a glyph margin.
Public fieldStatic member GlyphMarginName The name of the option that determines whether to have a glyph margin.
Public fieldStatic member HorizontalScrollBarId Determines whether to have a horizontal scroll bar.
Public fieldStatic member HorizontalScrollBarName The name of the option that determines whether to have a horizontal scroll bar.
Public fieldStatic member LineNumberMarginId Determines whether to have a line number margin.
Public fieldStatic member LineNumberMarginName The name of the option that determines whether to have a line number margin.
Public fieldStatic member MarkMarginWidthOptionId Determines the width of the marks margin.
Public fieldStatic member MarkMarginWidthOptionName The name of the option that determines the width of the marks margin.
Public fieldStatic member OutliningMarginId Determines whether to have an outlining margin.
Public fieldStatic member OutliningMarginName The name of the option that determines whether to have an outlining margin.
Public fieldStatic member PreviewSizeOptionId Determines the size (in lines of text) of the default tip.
Public fieldStatic member PreviewSizeOptionName The name of the option that determines the size (in lines of text) of the default tip.
Public fieldStatic member SelectionMarginId Determines whether to have a selection margin.
Public fieldStatic member SelectionMarginName The name of the option that determines whether to have a selection margin.
Public fieldStatic member ShowCaretPositionOptionId Determines whether the vertical margin shows the location of the caret.
Public fieldStatic member ShowCaretPositionOptionName The name of the option that determines whether the vertical margin shows the location of the caret.
Public fieldStatic member ShowChangeTrackingMarginOptionId Determines whether changes are shown over the vertical scroll bar.
Public fieldStatic member ShowChangeTrackingMarginOptionName The name of the option that determines whether changes are shown over the vertical scroll bar.
Public fieldStatic member ShowEnhancedScrollBarOptionId Determines whether the vertical scroll bar is shown as a standard WPF scroll bar or the new enhanced scroll bar.
Public fieldStatic member ShowEnhancedScrollBarOptionName The name of the option that determines whether the vertical scroll bar is shown as a standard WPF scroll bar or the new enhanced scroll bar.
Public fieldStatic member ShowErrorsOptionId Determines whether errors are shown over the vertical scroll bar.
Public fieldStatic member ShowErrorsOptionName The name of the option that determines whether errors are shown over the vertical scroll bar.
Public fieldStatic member ShowMarksOptionId Determines whether marks (bookmarks, breakpoints, etc.) are shown over the vertical scroll bar.
Public fieldStatic member ShowMarksOptionName The name of the option that determines whether marks (bookmarks, breakpoints, etc.) are shown over the vertical scroll bar.
Public fieldStatic member ShowPreviewOptionId Determines whether a preview tip is shown when the mouse moves over the vertical scroll bar.
Public fieldStatic member ShowPreviewOptionName The name of the option that determines whether a preview tip is shown when the mouse moves over the vertical scroll bar.
Public fieldStatic member ShowScrollBarAnnotationsOptionId Determines whether any annotations are shown over the vertical scroll bar.
Public fieldStatic member ShowScrollBarAnnotationsOptionName The name of the option that determines whether any annotations are shown over the vertical scroll bar.
Public fieldStatic member SourceImageMarginEnabledOptionId Determines whether the source image margin is displayed. This margin is only shown if this option is set together with the ShowEnhancedScrollBarOption, and the SourceImageMarginWidth is >= 25.0.
Public fieldStatic member SourceImageMarginEnabledOptionName The name of the option that determines whether the source image margin is displayed. This margin is only shown if this option is set together with the ShowEnhancedScrollBarOption, and the SourceImageMarginWidth is >= 25.0.
Public fieldStatic member SourceImageMarginWidthOptionId Determines the width of the source image margin.
Public fieldStatic member SourceImageMarginWidthOptionName The name of the option that determines the width of the source image margin.
Public fieldStatic member VerticalScrollBarId Determines whether to have a vertical scroll bar.
Public fieldStatic member VerticalScrollBarName The name of the option that determines whether to have a vertical scroll bar.
Public fieldStatic member ZoomControlId Determines whether to have a zoom control.
Public fieldStatic member ZoomControlName The name of the option that destermines whether to have a zoom control.

Top

Remarks

A IWpfTextViewHost contains the IWpfTextView plus the margins and scrollbars surrounding the view.

Thread Safety

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

See Also

Reference

Microsoft.VisualStudio.Text.Editor Namespace