Compartilhar via


IVsDifferenceCodeWindow Interface

A factory service for creating difference code windows on arbitrary strings or snapshot spans.

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

Syntax

'Declaration
Public Interface IVsDifferenceCodeWindow _
    Inherits IVsCodeWindow
public interface IVsDifferenceCodeWindow : IVsCodeWindow
public interface class IVsDifferenceCodeWindow : IVsCodeWindow
type IVsDifferenceCodeWindow =  
    interface 
        interface IVsCodeWindow 
    end
public interface IVsDifferenceCodeWindow extends IVsCodeWindow

The IVsDifferenceCodeWindow type exposes the following members.

Properties

  Name Description
Public property Caption Gets or sets the caption for the diff window's document tab.
Public property Control Gets or sets the FrameworkElement that contains the difference view.
Public property DifferenceViewer Gets or sets the IWpfDifferenceViewer used by this code window.
Public property InlineLabel Gets or sets the label displayed above the inline view.
Public property LeftLabel Gets or sets the label displayed above the left view.
Public property RightLabel Gets or sets the label displayed above the right view.
Public property SideBySideLabel Gets or sets the label displayed above the side by side.
Public property Tooltip Gets or sets the tooltip for the diff window's document tab.

Top

Methods

  Name Description
Public method Close (Inherited from IVsCodeWindow.)
Public method GetBuffer (Inherited from IVsCodeWindow.)
Public method GetEditorCaption (Inherited from IVsCodeWindow.)
Public method GetLastActiveView (Inherited from IVsCodeWindow.)
Public method GetPrimaryView (Inherited from IVsCodeWindow.)
Public method GetSecondaryView (Inherited from IVsCodeWindow.)
Public method GetViewClassID (Inherited from IVsCodeWindow.)
Public method SetBaseEditorCaption (Inherited from IVsCodeWindow.)
Public method SetBuffer (Inherited from IVsCodeWindow.)
Public method SetViewClassID (Inherited from IVsCodeWindow.)

Top

Remarks

This is a MEF Component and can be imported as follows:

[Import]
IVsDifferenceCodeWindowFactoryService differenceCodeWindowFactoryService;

See Also

Reference

Microsoft.VisualStudio.Editor Namespace