Skip to main content

SuggestionCollection.Contains(String) Method

Determines whether a text string is in the collection of suggestions.

Namespace: DevExpress.XtraSpellChecker

Assembly: DevExpress.SpellChecker.v24.1.Core.dll

NuGet Package: DevExpress.SpellChecker.Core

Declaration

public bool Contains(
    string suggestion
)

Parameters

Name Type Description
suggestion String

A String object to locate in the suggestion collection.

Returns

Type Description
Boolean

true if an item is found within the collection; otherwise false.

Remarks

The method searches the SuggestionBase.Suggestion properties of collection elements for a string match.

See Also