IHierarchicalDifferenceCollection Interface
Visual Studio 2012
Represents a difference collection in which the left and right sequences are ITokenizedStringList objects, and each difference may itself contain an IHierarchicalDifferenceCollection.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
The IHierarchicalDifferenceCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Differences | Returns the difference collection as a list. (Inherited from IDifferenceCollection<T>.) |
![]() | LeftDecomposition | Gets the original left tokenized list. |
![]() | LeftSequence | Gets the left sequence that was used to create this difference collection. (Inherited from IDifferenceCollection<T>.) |
![]() | MatchSequence | Gets the original match sequence that was used to create this difference collection. (Inherited from IDifferenceCollection<T>.) |
![]() | RightDecomposition | Get the original right tokenized list. |
![]() | RightSequence | Gets the right sequence that was used to create this difference collection. (Inherited from IDifferenceCollection<T>.) |
| Name | Description | |
|---|---|---|
![]() | GetContainedDifferences | Gets the contained difference collection for the given element, if it has any. |
![]() | GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<Difference>.) |
![]() | HasContainedDifferences | Determines whether the Difference at the given index itself contains differences. |
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.
