Partager via


DifferenceViewerOptions Class

A set of options about the difference viewer display.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Text.Differencing.DifferenceViewerOptions

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

Syntax

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

The DifferenceViewerOptions type exposes the following members.

Fields

  Name Description
Public fieldStatic member HighlightModeId The ID of the option that specifies whether the DifferenceHighlightMode for the line changed markers.
Public fieldStatic member HighlightModeName The name of the option that specifies whether the DifferenceHighlightMode for the line changed markers.
Public fieldStatic member ScrollToFirstDiffId The ID of the option that specifies whether or not to scroll to the first diff. If true, the difference viewer will scroll each contained view to the first visible difference after the files are compared. If false, the scrolled area is left alone.
Public fieldStatic member ScrollToFirstDiffName The name of the option that specifies whether or not to scroll to the first diff. If true, the difference viewer will scroll each contained view to the first visible difference after the files are compared. If false, the scrolled area is left alone.
Public fieldStatic member SynchronizeSideBySideViewsId The ID of the option that specifies whether the views are to be synchronized. If true, the left and right views of the side by side view are aligned with each other. This option is ignored in the other view modes.
Public fieldStatic member SynchronizeSideBySideViewsName The name of the option that specifies whether the views are to be synchronized. If true, the left and right views of the side by side view are aligned with each other. This option is ignored in the other view modes.
Public fieldStatic member ViewModeId The ID of the option that specifies the DifferenceViewMode the difference viewer should use (side-by-side, inline, one side at a time).
Public fieldStatic member ViewModeName The name of the option that specifies the DifferenceViewMode the difference viewer should use (side-by-side, inline, one side at a time).

Top

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.Differencing Namespace