IWpfDifferenceViewerFactoryService::CreateDifferenceView Method (IDifferenceBuffer^, CreateTextViewHostCallback^, IEditorOptions^)
Visual Studio 2015
Create an IDifferenceViewer over the given IDifferenceBuffer, using the given callback to create the individual views (inline, left, and right).
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
IWpfDifferenceViewer^ CreateDifferenceView( IDifferenceBuffer^ buffer, CreateTextViewHostCallback^ callback, IEditorOptions^ parentOptions = null )
Parameters
- buffer
-
Type:
Microsoft.VisualStudio.Text.Differencing::IDifferenceBuffer^
The difference buffer to display.
- callback
-
Type:
Microsoft.VisualStudio.Text.Differencing::CreateTextViewHostCallback^
The callback to use to create individual views.
- parentOptions
-
Type:
Microsoft.VisualStudio.Text.Editor::IEditorOptions^
The parent of the editor options for the difference viewer (if null, the global options are the parent).
Return Value
Type: Microsoft.VisualStudio.Text.Differencing::IWpfDifferenceViewer^Returns IWpfDifferenceViewer.
Show: