UtilDiffLibDumpDiffRtf Method
Builds a Rich-Text string with all the differences highlighted between two strings.
Namespace: DevCase.ThirdParty.DiffLibAssembly: 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
)
Public Shared Function DumpDiffRtf (
str1 As String,
str2 As String,
forecolorNoChange As Color,
forecolorAdded As Color,
forecolorDeleted As Color,
backColorNoChange As Color,
backColorAdded As Color,
backColorDeleted As Color,
Optional fontSize As Single = 0F
) As String
Dim str1 As String
Dim str2 As String
Dim forecolorNoChange As Color
Dim forecolorAdded As Color
Dim forecolorDeleted As Color
Dim backColorNoChange As Color
Dim backColorAdded As Color
Dim backColorDeleted As Color
Dim fontSize As Single
Dim returnValue As String
returnValue = UtilDiffLib.DumpDiffRtf(str1,
str2, forecolorNoChange, forecolorAdded,
forecolorDeleted, backColorNoChange,
backColorAdded, backColorDeleted,
fontSize)
public:
static String^ DumpDiffRtf(
String^ str1,
String^ str2,
Color forecolorNoChange,
Color forecolorAdded,
Color forecolorDeleted,
Color backColorNoChange,
Color backColorAdded,
Color backColorDeleted,
float fontSize = 0f
)
static member DumpDiffRtf :
str1 : string *
str2 : string *
forecolorNoChange : Color *
forecolorAdded : Color *
forecolorDeleted : Color *
backColorNoChange : Color *
backColorAdded : Color *
backColorDeleted : Color *
?fontSize : float32
(* Defaults:
let _fontSize = defaultArg fontSize 0f
*)
-> string
No code example is currently available or this language may not be supported.
- 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
String
The resulting Rich-Text string.
Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:
DiffLib by Lasse V. Karlsen
This is a code example.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.