Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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. 
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.