Back to Devexpress

SpellCheckerBase.LevenshteinDistance Property

corelibraries-devexpress-dot-xtraspellchecker-dot-spellcheckerbase-f98825d0.md

latest1.9 KB
Original Source

SpellCheckerBase.LevenshteinDistance Property

Gets or sets the parameter used to measure the proximity of words to be included in a suggestion collection.

Namespace : DevExpress.XtraSpellChecker

Assembly : DevExpress.SpellChecker.v25.2.Core.dll

NuGet Package : DevExpress.SpellChecker.Core

Declaration

csharp
[DefaultValue(3)]
public int LevenshteinDistance { get; set; }
vb
<DefaultValue(3)>
Public Property LevenshteinDistance As Integer

Property Value

TypeDefaultDescription
Int323

An integer value that is the maximum number of steps used to convert the misspelled word into a suggested one.

|

Remarks

The Levenshtein distance is given by the minimum number of operations needed to transform one string into another, where the operation is an insertion, deletion, or substitution of a single character. The spell checker engine calculates this distance when creating a suggestion list. For each suggestion it is available via the SuggestionBase.Distance property.

This parameter specifies the maximum allowed value of the distance, and has an effect on the number of suggested words and their ordering.

See Also

SpellCheckerBase Class

SpellCheckerBase Members

DevExpress.XtraSpellChecker Namespace