Compartir a través de


IDifferenceBufferFactoryService.CreateDifferenceBuffer Method

Definition

Overloads

CreateDifferenceBuffer(ITextBuffer, ITextBuffer)

Create an IDifferenceBuffer for the given left and right buffers.

CreateDifferenceBuffer(ITextBuffer, ITextBuffer, StringDifferenceOptions, Boolean, Boolean, Boolean)

Create an IDifferenceBuffer for the given left and right buffers and with the given difference options.

CreateDifferenceBuffer(ITextBuffer, ITextBuffer)

Create an IDifferenceBuffer for the given left and right buffers.

public:
 Microsoft::VisualStudio::Text::Differencing::IDifferenceBuffer ^ CreateDifferenceBuffer(Microsoft::VisualStudio::Text::ITextBuffer ^ leftBaseBuffer, Microsoft::VisualStudio::Text::ITextBuffer ^ rightBaseBuffer);
public Microsoft.VisualStudio.Text.Differencing.IDifferenceBuffer CreateDifferenceBuffer (Microsoft.VisualStudio.Text.ITextBuffer leftBaseBuffer, Microsoft.VisualStudio.Text.ITextBuffer rightBaseBuffer);
abstract member CreateDifferenceBuffer : Microsoft.VisualStudio.Text.ITextBuffer * Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.Differencing.IDifferenceBuffer
Public Function CreateDifferenceBuffer (leftBaseBuffer As ITextBuffer, rightBaseBuffer As ITextBuffer) As IDifferenceBuffer

Parameters

leftBaseBuffer
ITextBuffer

The left (old, before) buffer.

rightBaseBuffer
ITextBuffer

The right (new, after) buffer.

Returns

Returns IDifferenceBuffer.

Remarks

This is equivalent to calling CreateDifferenceBuffer(left, right, new StringDifferenceOptions());.

Applies to

CreateDifferenceBuffer(ITextBuffer, ITextBuffer, StringDifferenceOptions, Boolean, Boolean, Boolean)

Create an IDifferenceBuffer for the given left and right buffers and with the given difference options.

public Microsoft.VisualStudio.Text.Differencing.IDifferenceBuffer CreateDifferenceBuffer (Microsoft.VisualStudio.Text.ITextBuffer leftBaseBuffer, Microsoft.VisualStudio.Text.ITextBuffer rightBaseBuffer, Microsoft.VisualStudio.Text.Differencing.StringDifferenceOptions options, bool disableEditing = false, bool wrapLeftBuffer = true, bool wrapRightBuffer = true);
abstract member CreateDifferenceBuffer : Microsoft.VisualStudio.Text.ITextBuffer * Microsoft.VisualStudio.Text.ITextBuffer * Microsoft.VisualStudio.Text.Differencing.StringDifferenceOptions * bool * bool * bool -> Microsoft.VisualStudio.Text.Differencing.IDifferenceBuffer
Public Function CreateDifferenceBuffer (leftBaseBuffer As ITextBuffer, rightBaseBuffer As ITextBuffer, options As StringDifferenceOptions, Optional disableEditing As Boolean = false, Optional wrapLeftBuffer As Boolean = true, Optional wrapRightBuffer As Boolean = true) As IDifferenceBuffer

Parameters

leftBaseBuffer
ITextBuffer

The left (old, before) buffer.

rightBaseBuffer
ITextBuffer

The right (new, after) buffer.

options
StringDifferenceOptions

The options to use in computing differences between the buffers.

disableEditing
Boolean

If true, disable editing in the right and inlines views.

wrapLeftBuffer
Boolean

If true, create a read-only projection of leftBaseBuffer (which will prevent that buffer from being modified through the difference buffers).

wrapRightBuffer
Boolean

If true and editing is disabled, create a read-only projection of rightBaseBuffer (which will prevent that buffer from being modified through the difference buffers).

Returns

Returns IDifferenceBuffer.

Remarks

If disableEditing is false, then wrapRightBuffer is ignored (and the right buffer will not be wrapped).

If wrapLeftBuffer is false, then the caller of this method is responsible for making sure leftBaseBuffer is read-only.

If disableEditing is true and wrapRightBuffer is false, then the caller of this method is responsible for making sure rightBaseBuffer is read-only.

If wrapLeftBuffer is true, then leftBaseBuffer can be null.

Applies to