DifferenceType Enumeration

 

The types of differences.

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

public enum DifferenceType

Member nameDescription
Add

Lines were added, so the text is on the right-hand side.

Change

Lines were changed, so the text is on both sides.

Remove

Lines were removed, so the text is on the left-hand side.

Differences are read from left to right, so that Add means that only the right span has text, Remove means that only the left span has text, and Change means that both the left and right spans have text.

Return to top
Show: