For the complete documentation index, see llms.txt. This page is also available as Markdown.

FuzzySort

The FuzzySort extension adds fuzzysort capabilities to Wisej.NET containers such as ComboBox. It allows you to sort lists based on a fuzzy matching algorithm, which is useful for scenarios where exact matches are not feasible.

Code Example

// Create the ComboBox
var myComboBox = new ComboBox()
{
    Width = 250,
    Location = new System.Drawing.Point(20, 20)
};

// Add items
myComboBox.Items.AddRange(new object[]
   {
   "Apple",
   "Banana",
    "Grape",
    "Pineapple",
    "Orange",
    "Apricot",
    "Blueberry",
    "Blackberry"
    });
// Apply fuzzy sort extension
var sortedComboBox = FuzzySort.ApplyFuzzySort(myComboBox);

// Add to page
this.Controls.Add(sortedComboBox);

If you use the above code example and type "ap" in the combobox it will look like this:

How To Use

The FuzzySort extension can be added to a Wisej.NET project using NuGet Package Manager.

Last updated

Was this helpful?