ITextDifferencingSelectorService Interface

 

Used to retrieve an ITextDifferencingService for a given content type. These services may be provided by extenders and may return differences that more closely match the semantics of the given content type, instead of simple textual differencing.

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

public interface ITextDifferencingSelectorService

NameDescription
System_CAPS_pubpropertyDefaultTextDifferencingService

Gets the default ITextDifferencingService, which performs simple textual differencing.

NameDescription
System_CAPS_pubmethodGetTextDifferencingService(IContentType)

Gets the ITextDifferencingService for the given content type.

The methods on this service are guaranteed never to return null. If there isn't a specific ITextDifferencingService registered for the given content type or any of its parent types, a default service will be used, which uses the default IDifferenceService to perform simple textual differencing.

This is a MEF component part, and should be imported as follows:

[Import]
            ITextDifferencingSelectorService diffService = null;
Return to top
Show: