IWpfDifferenceViewer 介面

定義

的 WPF 特定版本 IDifferenceViewer ,可讓您存取 VisualElement 用來裝載檢視器和各種文字視圖主機的 IWpfTextViewHostA WPF-specific version of an IDifferenceViewer, which provides access to the VisualElement used to host the viewer and the various text view hosts as IWpfTextViewHost.

public interface class IWpfDifferenceViewer : Microsoft::VisualStudio::Text::Differencing::IDifferenceViewer, Microsoft::VisualStudio::Utilities::IPropertyOwner
public interface class IWpfDifferenceViewer : Microsoft::VisualStudio::Text::Differencing::IDifferenceViewer, Microsoft::VisualStudio::Utilities::IPropertyOwner
__interface IWpfDifferenceViewer : Microsoft::VisualStudio::Text::Differencing::IDifferenceViewer, Microsoft::VisualStudio::Utilities::IPropertyOwner
public interface IWpfDifferenceViewer : Microsoft.VisualStudio.Text.Differencing.IDifferenceViewer, Microsoft.VisualStudio.Utilities.IPropertyOwner
type IWpfDifferenceViewer = interface
    interface IDifferenceViewer
    interface IPropertyOwner
Public Interface IWpfDifferenceViewer
Implements IDifferenceViewer, IPropertyOwner
實作

屬性

ActiveViewType

識別最後擁有焦點的現用視圖。Identifies the active view that last had focus.

(繼承來源 IDifferenceViewer)
AreViewsSynchronized

左邊和右邊的視圖會在並排顯示中同步處理。Are the left and right views are synchronized in the side by side view.

(繼承來源 IDifferenceViewer)
DifferenceBuffer

IDifferenceBuffer此檢視器顯示的。The IDifferenceBuffer that this viewer is displaying.

(繼承來源 IDifferenceViewer)
InlineHost

顯示差異的主機 InlineThe host for displaying Inline differences.

InlineView

顯示差異的視圖 InlineThe view for displaying Inline differences.

IsClosed

判斷此檢視器是否已關閉。Determine if this viewer is closed.

(繼承來源 IDifferenceViewer)
IsInitialized

此檢視器是否已初始化?Has this viewer been initialized?

LeftHost

用於顯示差異之左邊緩衝區的主機 SideBySideThe host for displaying the left buffer for SideBySide differences.

LeftView

用於顯示差異的左邊緩衝區的視圖 SideBySideThe view for displaying the left buffer for SideBySide differences.

Options

用來取得或設定 () 的一般差異檢視器選項 DifferenceViewerOptionsUsed to get or set general difference viewer options (DifferenceViewerOptions).

(繼承來源 IDifferenceViewer)
Properties

屬性擁有者所控制的屬性集合。The collection of properties controlled by the property owner.

(繼承來源 IPropertyOwner)
RightHost

為了顯示差異而顯示右緩衝區的主機 SideBySideThe host for displaying the right buffer for SideBySide differences.

RightView

用於顯示差異的右緩衝區的視圖 SideBySideThe view for displaying the right buffer for SideBySide differences.

ViewMode

視圖模式 (內嵌或並存) 。The view mode (inline or side-by-side).

(繼承來源 IDifferenceViewer)
VisualElement

此檢視器的視覺元素。The visual element of this viewer.

方法

Close()

關閉檢視器和所有包含的主機。Close the viewer and all contained hosts.

(繼承來源 IDifferenceViewer)
Initialize(IDifferenceBuffer, CreateTextViewHostCallback, IEditorOptions)

初始化 DifferenceViewer、將它連結至指定的緩衝區,並使用回呼來建立文字視圖主機。Initialize the DifferenceViewer, hooking it to the specified buffer and using the callback to create the text view hosts.

ScrollToChange(Difference)

將插入點移至指定差異的開頭。Scroll and move the caret to the start of the given difference.

(繼承來源 IDifferenceViewer)
ScrollToMatch(Match)

將插入點移至指定的相符項的開頭。Scroll and move the caret to the start of the given match.

(繼承來源 IDifferenceViewer)
ScrollToNextChange(Boolean)

在最後一個焦點的文字視圖中指定游標位置,然後將插入點移到下一個差異。Given the cursor position in the last focused text view, scroll and move the caret to the next difference.

(繼承來源 IDifferenceViewer)
ScrollToNextChange(SnapshotPoint, Boolean)

將插入點移至指定位置之後的下一個差異。Scroll and move the caret to the next difference after the specified location.

(繼承來源 IDifferenceViewer)
ScrollToPreviousChange(Boolean)

在最後一個焦點的文字視圖中指定游標位置,然後將插入點移至先前的差異。Given the cursor position in the last focused text view, scroll and move the caret to the previous difference.

(繼承來源 IDifferenceViewer)
ScrollToPreviousChange(SnapshotPoint, Boolean)

將插入點移至指定位置之前的上一個差異。Scroll and move the caret to the previous difference before the specified location.

(繼承來源 IDifferenceViewer)

事件

Closed

當視圖關閉時引發。Raised when the view is closed.

(繼承來源 IDifferenceViewer)
ViewModeChanged

在變更時引發 ViewModeRaised when the ViewMode changes.

(繼承來源 IDifferenceViewer)

適用於