다음을 통해 공유


IWpfDifferenceViewer.Initialize Method

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)

Syntax

'Declaration
Sub Initialize ( _
    differenceBuffer As IDifferenceBuffer, _
    createTextViewHost As CreateTextViewHostCallback, _
    parentOptions As IEditorOptions _
)
void Initialize(
    IDifferenceBuffer differenceBuffer,
    CreateTextViewHostCallback createTextViewHost,
    IEditorOptions parentOptions
)
void Initialize(
    IDifferenceBuffer^ differenceBuffer, 
    CreateTextViewHostCallback^ createTextViewHost, 
    IEditorOptions^ parentOptions
)
abstract Initialize : 
        differenceBuffer:IDifferenceBuffer * 
        createTextViewHost:CreateTextViewHostCallback * 
        parentOptions:IEditorOptions -> unit
function Initialize(
    differenceBuffer : IDifferenceBuffer, 
    createTextViewHost : CreateTextViewHostCallback, 
    parentOptions : IEditorOptions
)

Parameters

Remarks

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.

.NET Framework Security

See Also

Reference

IWpfDifferenceViewer Interface

Microsoft.VisualStudio.Text.Differencing Namespace