Table of Contents

Method FindString

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

FindString(string)

Returns the index of the first item in the control that starts with the specified string.

public virtual int? FindString(string s)

Parameters

s string

The string to search for.

Returns

int?

The zero-based index of the first item found; returns null if no match is found.

Remarks

The search performed by this method is not case-sensitive. The s parameter is a substring to compare against the text associated with the items in the control. The search performs a partial match starting from the beginning of the text, and returning the first item in the list that matches the specified substring.

FindString(string, int?)

Returns the index of the first item in the control beyond the specified index that contains the specified string. The search is not case sensitive.

public virtual int? FindString(string s, int? startIndex)

Parameters

s string

The string to search for.

startIndex int?

The zero-based index of the item before the first item to be searched. Set to null to search from the beginning of the control.

Returns

int?

The zero-based index of the first item found; returns null if no match is found.

Remarks

The search performed by this method is not case-sensitive. The s parameter is a substring to compare against the text associated with the items in the control. The search performs a partial match starting from the beginning of the text, returning the first item in the list that matches the specified substring.