IWpfDifferenceViewerFactoryService.CreateDifferenceView Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateDifferenceView(IDifferenceBuffer, IEditorOptions) |
Create an IDifferenceViewer over the given IDifferenceBuffer. |
CreateDifferenceView(IDifferenceBuffer, CreateTextViewHostCallback, IEditorOptions) |
Create an IDifferenceViewer over the given IDifferenceBuffer, using the given callback to create the individual views (inline, left, and right). |
CreateDifferenceView(IDifferenceBuffer, ITextViewRoleSet, IEditorOptions) |
Create an IDifferenceViewer over the given IDifferenceBuffer with the given set of roles. |
CreateDifferenceView(IDifferenceBuffer, IEditorOptions)
Create an IDifferenceViewer over the given IDifferenceBuffer.
public Microsoft.VisualStudio.Text.Differencing.IWpfDifferenceViewer CreateDifferenceView (Microsoft.VisualStudio.Text.Differencing.IDifferenceBuffer buffer, Microsoft.VisualStudio.Text.Editor.IEditorOptions parentOptions = default);
abstract member CreateDifferenceView : Microsoft.VisualStudio.Text.Differencing.IDifferenceBuffer * Microsoft.VisualStudio.Text.Editor.IEditorOptions -> Microsoft.VisualStudio.Text.Differencing.IWpfDifferenceViewer
Public Function CreateDifferenceView (buffer As IDifferenceBuffer, Optional parentOptions As IEditorOptions = Nothing) As IWpfDifferenceViewer
Parameters
- buffer
- IDifferenceBuffer
The difference buffer to display.
- parentOptions
- IEditorOptions
The parent of the editor options for the difference viewer (if null, the global options are the parent).
Returns
A difference viewer.
Applies to
CreateDifferenceView(IDifferenceBuffer, CreateTextViewHostCallback, IEditorOptions)
Create an IDifferenceViewer over the given IDifferenceBuffer, using the given callback to create the individual views (inline, left, and right).
public Microsoft.VisualStudio.Text.Differencing.IWpfDifferenceViewer CreateDifferenceView (Microsoft.VisualStudio.Text.Differencing.IDifferenceBuffer buffer, Microsoft.VisualStudio.Text.Differencing.CreateTextViewHostCallback callback, Microsoft.VisualStudio.Text.Editor.IEditorOptions parentOptions = default);
abstract member CreateDifferenceView : Microsoft.VisualStudio.Text.Differencing.IDifferenceBuffer * Microsoft.VisualStudio.Text.Differencing.CreateTextViewHostCallback * Microsoft.VisualStudio.Text.Editor.IEditorOptions -> Microsoft.VisualStudio.Text.Differencing.IWpfDifferenceViewer
Public Function CreateDifferenceView (buffer As IDifferenceBuffer, callback As CreateTextViewHostCallback, Optional parentOptions As IEditorOptions = Nothing) As IWpfDifferenceViewer
Parameters
- buffer
- IDifferenceBuffer
The difference buffer to display.
- callback
- CreateTextViewHostCallback
The callback to use to create individual views.
- parentOptions
- IEditorOptions
The parent of the editor options for the difference viewer (if null, the global options are the parent).
Returns
A difference viewer.
Applies to
CreateDifferenceView(IDifferenceBuffer, ITextViewRoleSet, IEditorOptions)
Create an IDifferenceViewer over the given IDifferenceBuffer with the given set of roles.
public Microsoft.VisualStudio.Text.Differencing.IWpfDifferenceViewer CreateDifferenceView (Microsoft.VisualStudio.Text.Differencing.IDifferenceBuffer buffer, Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet roles, Microsoft.VisualStudio.Text.Editor.IEditorOptions parentOptions = default);
abstract member CreateDifferenceView : Microsoft.VisualStudio.Text.Differencing.IDifferenceBuffer * Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet * Microsoft.VisualStudio.Text.Editor.IEditorOptions -> Microsoft.VisualStudio.Text.Differencing.IWpfDifferenceViewer
Public Function CreateDifferenceView (buffer As IDifferenceBuffer, roles As ITextViewRoleSet, Optional parentOptions As IEditorOptions = Nothing) As IWpfDifferenceViewer
Parameters
- buffer
- IDifferenceBuffer
The difference buffer to display.
- roles
- ITextViewRoleSet
The text view roles to use for the created views.
- parentOptions
- IEditorOptions
The parent of the editor options for the difference viewer (if null, the global options are the parent).
Returns
A difference viewer.