UtilDiffLibDumpDiffRtf Method

Builds a Rich-Text string with all the differences highlighted between two strings.

Definition

Namespace: DevCase.ThirdParty.DiffLib
Assembly: DevCase.net48.ThirdParty.DiffLib (in DevCase.net48.ThirdParty.DiffLib.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string DumpDiffRtf(
	string str1,
	string str2,
	Color forecolorNoChange,
	Color forecolorAdded,
	Color forecolorDeleted,
	Color backColorNoChange,
	Color backColorAdded,
	Color backColorDeleted,
	float fontSize = 0f
)

Parameters

str1  String
The first string to compare.
str2  String
The second string to compare.
forecolorNoChange  Color
The forecolor to use for a string that has any changes.
forecolorAdded  Color
The forecolor to use for a string that has been added.
forecolorDeleted  Color
The forecolor to use for a string that has been deleted.
backColorNoChange  Color
The backcolor to use for a string that has any changes.
backColorAdded  Color
The backcolor to use for a string that has been added.
backColorDeleted  Color
The backcolor to use for a string that has been deleted.
fontSize  Single  (Optional)
The font size.

Set this value to 0.0 to let the system decide the font size, which normally is 8.25

Return Value

String
The resulting Rich-Text string.

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:

DiffLib by Lasse V. Karlsen

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also