This topic has not yet been rated - Rate this topic

StringDifferenceTypes Enumeration

A bitwise combination of the enumeration values to use when computing differences with the various methods in IHierarchicalStringDifferenceService.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
[FlagsAttribute]
public enum StringDifferenceTypes
Member nameDescription
CharacterCompute the character difference.
LineCompute the line difference.
WordCompute the word difference.

See the comments on IHierarchicalStringDifferenceService for an explanation of how differences are computed.

You should not use the Character type unless the given text is relatively small. Computing differences with large data sets can be very slow.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.