IWpfDifferenceViewerFactoryService::CreateDifferenceView Method (IDifferenceBuffer^, ITextViewRoleSet^, IEditorOptions^)
Visual Studio 2015
Create an IDifferenceViewer over the given IDifferenceBuffer with the given set of roles.
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
IWpfDifferenceViewer^ CreateDifferenceView( IDifferenceBuffer^ buffer, ITextViewRoleSet^ roles, IEditorOptions^ parentOptions = null )
Parameters
- buffer
-
Type:
Microsoft.VisualStudio.Text.Differencing::IDifferenceBuffer^
The difference buffer to display.
- roles
-
Type:
Microsoft.VisualStudio.Text.Editor::ITextViewRoleSet^
The text view roles to use for the created 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: