IWpfDifferenceViewer::Initialize Method (IDifferenceBuffer^, CreateTextViewHostCallback^, IEditorOptions^)

 

Initialize the DifferenceViewer, hooking it to the specified buffer and using the callback to create the text view hosts.

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

void Initialize(
	IDifferenceBuffer^ differenceBuffer,
	CreateTextViewHostCallback^ createTextViewHost,
	IEditorOptions^ parentOptions = null
)

Parameters

differenceBuffer
Type: Microsoft.VisualStudio.Text.Differencing::IDifferenceBuffer^

The difference buffer.

createTextViewHost
Type: Microsoft.VisualStudio.Text.Differencing::CreateTextViewHostCallback^

The callback used to create the TextViewHost.

parentOptions
Type: Microsoft.VisualStudio.Text.Editor::IEditorOptions^

The options to use.

This method should only be called if the CreateUninitializedDifferenceView method on the IWpfDifferenceViewerFactoryService is used. Otherwise, it is called by the factory. The viewer does not have to be initialized immediately. You can wait until the Loaded event on the VisualElement.

Return to top
Show: