New to Telerik UI for WinForms? Start a free 30-day trial

Implements IFindStringComparer using case-insensitive substring containment for comparison.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ContainsFindStringComparer : IFindStringComparer

Inheritance: objectContainsFindStringComparer

Implements: IFindStringComparer

Constructors

C#
public ContainsFindStringComparer()

Methods

Checks whether x contains y after both strings are uppercased using the current culture.

C#
public bool Compare(string x, string y)
Parameters:xstring

The string to search within.

ystring

The substring to find.

Returns:

bool

false if either argument is null; otherwise, whether the converted strings contain a match.

Implements: IFindStringComparer.Compare(string, string)