What's Changed?
ExcludedTexts Property
Example 



KellermanSoftware.WhatsChanged Namespace > CompareLogic Class : ExcludedTexts Property
A list of text to ignore in the comparison.
Syntax
Public Property ExcludedTexts As List(Of ExcludedText)
Dim instance As CompareLogic
Dim value As List(Of ExcludedText)
 
instance.ExcludedTexts = value
 
value = instance.ExcludedTexts
public List<ExcludedText> ExcludedTexts {get; set;}
public:
property List<ExcludedText^>^ ExcludedTexts {
   List<ExcludedText^>^ get();
   void set (    List<ExcludedText^>^ value);
}
Example
CompareLogic compareLogic = new CompareLogic(); //Trial Mode
//CompareLogic compareLogic = new CompareLogic("place user name here", "place license key here"); //License Mode
 
compareLogic.ExcludedTexts = new List<ExcludedText>();
compareLogic.ExcludedTexts.Add(new ExcludedText("Bill",ExclusionType.StartsWith));
 
//Compare two strings
string original = "Bill Swill";
string changed = "Will Swill";
 
ComparisonResult result = compareLogic.CompareStrings(original, changed);
 
//Output to HTML, also can export to CSV, or DataTable
OutputHtmlLogic outputLogic = new OutputHtmlLogic();
outputLogic.OutputToFile(result, "ExcludedTextsTest.html");
 
//Show the file in the browser
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = "ExcludedTextsTest.html";
proc.Start();
Dim compareLogic As New CompareLogic() 'Trial Mode
'Dim compareLogic As New CompareLogic("place user name here", "place license key here") 'License Mode
 
compareLogic.ExcludedTexts = New List(Of ExcludedText)()
compareLogic.ExcludedTexts.Add(New ExcludedText("Bill",ExclusionType.StartsWith))
 
'Compare two strings
Dim original As String = "Bill Swill"
Dim changed As String = "Will Swill"
 
Dim result As ComparisonResult = compareLogic.CompareStrings(original, changed)
 
'Output to HTML, also can export to CSV, or DataTable
Dim outputLogic As New OutputHtmlLogic()
outputLogic.OutputToFile(result, "ExcludedTextsTest.html")
 
'Show the file in the browser
Dim proc As New System.Diagnostics.Process()
proc.StartInfo.FileName = "ExcludedTextsTest.html"
proc.Start()
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CompareLogic Class
CompareLogic Members