Back to Devexpress

CheckedComboBoxEdit.FindStringExact(String) Method

windowsforms-devexpress-dot-xtraeditors-dot-checkedcomboboxedit-dot-findstringexact-x28-system-dot-string-x29.md

latest2.0 KB
Original Source

CheckedComboBoxEdit.FindStringExact(String) Method

Searches for a CheckedComboBoxEdit item whose caption is equal to the target string.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public int FindStringExact(
    string s
)
vb
Public Function FindStringExact(
    s As String
) As Integer

Parameters

NameTypeDescription
sString

A String value that is the text to find.

|

Returns

TypeDescription
Int32

An Int32 value that is the found item’s index within this CheckedComboBoxEdit. If no item was found, returns -1.

|

Remarks

The FindStringExact method searches for an item whose caption entirely matches the target string. If you need to find any item whose caption starts with the required item (partial match), use one of the CheckedComboBoxEdit.FindString method overloads instead.

The FindStringExact method performs a non-case sensitive search.

See Also

FindString

CheckedComboBoxEdit Class

CheckedComboBoxEdit Members

DevExpress.XtraEditors Namespace