IDifferenceBufferFactoryService::CreateDifferenceBuffer Method (ITextBuffer^, ITextBuffer^, StringDifferenceOptions, Boolean, Boolean, Boolean)

 

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

Namespace:   Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

IDifferenceBuffer^ CreateDifferenceBuffer(
	ITextBuffer^ leftBaseBuffer,
	ITextBuffer^ rightBaseBuffer,
	StringDifferenceOptions options,
	bool disableEditing = false,
	bool wrapLeftBuffer = true,
	bool wrapRightBuffer = true
)

Parameters

leftBaseBuffer
Type: Microsoft.VisualStudio.Text::ITextBuffer^

The left (before) buffer.

rightBaseBuffer
Type: Microsoft.VisualStudio.Text::ITextBuffer^

The right (after) buffer.

options
Type: Microsoft.VisualStudio.Text.Differencing::StringDifferenceOptions

The options to use in computing differences between the buffers.

disableEditing
Type: System::Boolean

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

wrapLeftBuffer
Type: System::Boolean

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

wrapRightBuffer
Type: System::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).

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.

Return to top
Show: