Spread Windows Forms 17
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcComboBox Class / FindStringExact Method / FindStringExact(String,String) Method
The System.String to search for.
The System.String refer to the text foramt.


In This Topic
    FindStringExact(String,String) Method
    In This Topic
    Finds all items in the list that matches the specified string based on the specific text format.
    Syntax
    'Declaration
     
    
    Public Overloads Function FindStringExact( _
       ByVal s As String, _
       ByVal textFormat As String _
    ) As MatchedComboItemCollection
    'Usage
     
    
    Dim instance As GcComboBox
    Dim s As String
    Dim textFormat As String
    Dim value As MatchedComboItemCollection
     
    value = instance.FindStringExact(s, textFormat)
    public MatchedComboItemCollection FindStringExact( 
       string s,
       string textFormat
    )

    Parameters

    s
    The System.String to search for.
    textFormat
    The System.String refer to the text foramt.

    Return Value

    A MatchedListItemCollection containing the matched items.
    Exceptions
    ExceptionDescription
    The textFormat isn't a valid text format.
    Remarks
    The search performed by this method is case-sensitive. The s parameter is a string to compare against the text associated with the items in the combo box list. The search looks for a match starting from the beginning of the text, returning the items in the list that matches the specified substring. You can then perform tasks, such as removing the item that contains the search text using the ListItemCollection.Remove method or changing the item's text. Once you have found the specified text, if you want to search for other instances of the text in the GcComboBox, you must use the version of the FindStringExact(String,Int32,String) method that provides a parameter for specifying a starting index within the GcComboBox. If you want to perform partial word search instead of an exact word match, use the FindString(String,String) method.
    See Also