IHierarchicalDifferenceCollection Interface

Definition

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

public interface class IHierarchicalDifferenceCollection : Microsoft::VisualStudio::Text::Differencing::IDifferenceCollection<System::String ^>, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Differencing::Difference ^>
public interface IHierarchicalDifferenceCollection : Microsoft.VisualStudio.Text.Differencing.IDifferenceCollection<string>, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Differencing.Difference>
type IHierarchicalDifferenceCollection = interface
    interface IDifferenceCollection<string>
    interface seq<Difference>
    interface IEnumerable
Public Interface IHierarchicalDifferenceCollection
Implements IDifferenceCollection(Of String), IEnumerable(Of Difference)
Implements

Remarks

You can get this collection by using the IHierarchicalStringDifferenceService. When 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.

Properties

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>)

Methods

GetContainedDifferences(Int32)

Gets the contained difference collection for the given element, if it has any. This forces an evaluation of the contained differences.

HasContainedDifferences(Int32)

Determines whether or not the Difference at the given index itself contains differences. This forces an evaluation of the contained differences for the given element.

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

Applies to