IHierarchicalDifferenceCollection Interface

Represents a difference collection in which the left and right sequences are ITokenizedStringList objects, and each difference may itself contain an IHierarchicalDifferenceCollection.

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

public interface IHierarchicalDifferenceCollection : IDifferenceCollection<string>, 
	IEnumerable<Difference>, IEnumerable

The IHierarchicalDifferenceCollection type exposes the following members.

  NameDescription
Public propertyDifferencesReturns the difference collection as a list. (Inherited from IDifferenceCollection<T>.)
Public propertyLeftDecompositionGets the original left tokenized list.
Public propertyLeftSequenceGets the left sequence that was used to create this difference collection. (Inherited from IDifferenceCollection<T>.)
Public propertyMatchSequenceGets the original match sequence that was used to create this difference collection. (Inherited from IDifferenceCollection<T>.)
Public propertyRightDecompositionGet the original right tokenized list.
Public propertyRightSequenceGets the right sequence that was used to create this difference collection. (Inherited from IDifferenceCollection<T>.)
Top

  NameDescription
Public methodGetContainedDifferencesGets the contained difference collection for the given element, if it has any.
Public methodGetEnumeratorReturns an enumerator that iterates through the collection. (Inherited from IEnumerable<Difference>.)
Public methodHasContainedDifferencesDetermines whether the Difference at the given index itself contains differences.
Top

You can get this collection by using the IHierarchicalStringDifferenceService.

hen you request multiple types of string differencing (e.g. line and word), the first level of differences will be the lines, and each line difference may contain an IHierarchicalDifferenceCollection of word differences. See IHierarchicalStringDifferenceService for more information and examples.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft