Class StringSearch
Implements different search methods in IReadOnlyStrings.
public class StringSearch : BaseObject, IBaseObject
- Inheritance
-
StringSearch
- Implements
Constructors
- StringSearch(IReadOnlyStrings)
Initializes a new instance of the StringSearch class.
Properties
- CompareOptions
Gets or sets CompareOptions used in find string methods.
- Culture
Gets or sets CultureInfo used in find string methods.
- DefaultCompareOptions
Default value of the CompareOptions property.
- DefaultCulture
Default value of the Culture property.
- UseContains
Gets or sets whether to use partial string comparison when search is performed. Default is
false. When UseContains istrue, search operation is successful if searched string occurrence is on any character position.
Methods
- FindString(string?)
Returns the index of the first item in the control that starts with the specified string.
- 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.
- FindStringEx(string?, int?, bool, bool)
Returns the index of the first item in the control beyond the specified index that contains or equal the specified string.
- FindStringExact(string?)
Finds the first item in the combo box that matches the specified string.