ITextDifferencingService::DiffStrings Method (String^, String^, StringDifferenceOptions)

 

Computes the differences between two strings, using the given difference options.

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

IHierarchicalDifferenceCollection^ DiffStrings(
	String^ left,
	String^ right,
	StringDifferenceOptions differenceOptions
)

Parameters

left
Type: System::String^

The left string. In most cases this is the the "old" string

right
Type: System::String^

The right string. In most cases this is the "new" string.

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

The options to use in differencing.

Return Value

Type: Microsoft.VisualStudio.Text.Differencing::IHierarchicalDifferenceCollection^

A hierarchical collection of differences.

Return to top
Show: