Share via


IDifferenceBufferFactoryService2.CreateDifferenceBuffer Method

Definition

Overloads

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

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

CreateDifferenceBuffer(ITextDataModel, ITextDataModel, StringDifferenceOptions, Boolean, Boolean, Boolean, Boolean)

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

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

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

public:
 Microsoft::VisualStudio::Text::Differencing::IDifferenceBuffer2 ^ CreateDifferenceBuffer(Microsoft::VisualStudio::Text::ITextBuffer ^ leftBaseBuffer, Microsoft::VisualStudio::Text::ITextBuffer ^ rightBaseBuffer, Microsoft::VisualStudio::Text::Differencing::StringDifferenceOptions options, bool disableEditing, bool wrapLeftBuffer, bool wrapRightBuffer, bool fixedBaseLeftBuffer);
public Microsoft.VisualStudio.Text.Differencing.IDifferenceBuffer2 CreateDifferenceBuffer (Microsoft.VisualStudio.Text.ITextBuffer leftBaseBuffer, Microsoft.VisualStudio.Text.ITextBuffer rightBaseBuffer, Microsoft.VisualStudio.Text.Differencing.StringDifferenceOptions options, bool disableEditing, bool wrapLeftBuffer, bool wrapRightBuffer, bool fixedBaseLeftBuffer);
abstract member CreateDifferenceBuffer : Microsoft.VisualStudio.Text.ITextBuffer * Microsoft.VisualStudio.Text.ITextBuffer * Microsoft.VisualStudio.Text.Differencing.StringDifferenceOptions * bool * bool * bool * bool -> Microsoft.VisualStudio.Text.Differencing.IDifferenceBuffer2
Public Function CreateDifferenceBuffer (leftBaseBuffer As ITextBuffer, rightBaseBuffer As ITextBuffer, options As StringDifferenceOptions, disableEditing As Boolean, wrapLeftBuffer As Boolean, wrapRightBuffer As Boolean, fixedBaseLeftBuffer As Boolean) As IDifferenceBuffer2

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).

fixedBaseLeftBuffer
Boolean

Allows, if false, the BaseLeftBuffer can be changed.

Returns

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 fixedBaseLeftBuffer is false, then wrapLeftBuffer is ignored and leftBaseBuffer can be null.

Applies to

CreateDifferenceBuffer(ITextDataModel, ITextDataModel, StringDifferenceOptions, Boolean, Boolean, Boolean, Boolean)

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

public:
 Microsoft::VisualStudio::Text::Differencing::IDifferenceBuffer2 ^ CreateDifferenceBuffer(Microsoft::VisualStudio::Text::ITextDataModel ^ innerLeftDataModel, Microsoft::VisualStudio::Text::ITextDataModel ^ rightDataModel, Microsoft::VisualStudio::Text::Differencing::StringDifferenceOptions options, bool disableEditing, bool wrapLeftBuffer, bool wrapRightBuffer, bool fixedBaseLeftBuffer);
public Microsoft.VisualStudio.Text.Differencing.IDifferenceBuffer2 CreateDifferenceBuffer (Microsoft.VisualStudio.Text.ITextDataModel innerLeftDataModel, Microsoft.VisualStudio.Text.ITextDataModel rightDataModel, Microsoft.VisualStudio.Text.Differencing.StringDifferenceOptions options, bool disableEditing, bool wrapLeftBuffer, bool wrapRightBuffer, bool fixedBaseLeftBuffer);
abstract member CreateDifferenceBuffer : Microsoft.VisualStudio.Text.ITextDataModel * Microsoft.VisualStudio.Text.ITextDataModel * Microsoft.VisualStudio.Text.Differencing.StringDifferenceOptions * bool * bool * bool * bool -> Microsoft.VisualStudio.Text.Differencing.IDifferenceBuffer2
Public Function CreateDifferenceBuffer (innerLeftDataModel As ITextDataModel, rightDataModel As ITextDataModel, options As StringDifferenceOptions, disableEditing As Boolean, wrapLeftBuffer As Boolean, wrapRightBuffer As Boolean, fixedBaseLeftBuffer As Boolean) As IDifferenceBuffer2

Parameters

innerLeftDataModel
ITextDataModel

The data model for the left buffer. This can be null.

rightDataModel
ITextDataModel

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 innerLeftDataModel (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 rightDataModel (which will prevent that buffer from being modified through the difference buffers).

fixedBaseLeftBuffer
Boolean

Allows, if false, the BaseLeftBuffer can be changed.

Returns

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 innerLeftDataModel is read-only.

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

If fixedBaseLeftBuffer is false, then wrapLeftBuffer is ignored and innerLeftDataModel can be null.

Applies to