The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxSpellChecker.LevenshteinDistance Property

Gets or sets the parameter used to measure the proximity of words.

Namespace: DevExpress.Web.ASPxSpellChecker

Assembly: DevExpress.Web.ASPxSpellChecker.v19.2.dll

Declaration

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

Property Value

Type Default Description
Int32

4

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

Remarks

The Levenshtein distance is 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 by 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 order.

See Also