IHierarchicalStringDifferenceService Interface
Visual Studio 2012
Note: This API is now obsolete.
This service has several shortcut methods that compute differences over strings, snapshots, and spans.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
The IHierarchicalStringDifferenceService type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DiffSnapshotSpans | Calculates the differences between two snapshot spans, using the given difference options. |
![]() | DiffStrings | Calculates the differences between two strings, using the given difference options. |
This is a MEF component part, and should be imported as follows:
[Import] Internal IHierarchicalStringDifferenceService hierarchicalService = null;
Differences are computed according to the specified StringDifferenceTypes, starting with the most general type. Line is more general than word, and word is more general than character.
