Skip to main content
A newer version of this page is available. .

SuggestionCollection.Contains(String) Method

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

Namespace: DevExpress.XtraSpellChecker

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

NuGet Packages: DevExpress.SpellChecker.Core, DevExpress.WindowsDesktop.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