Spread Windows Forms 17
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / ListItemCollection Class / FindString Method
The System.String to search for.
The zero-based index of the item before the first item to be searched.
The System.Int32 value to which column index search in.


In This Topic
    FindString Method (ListItemCollection)
    In This Topic
    Finds the first item after the given index which starts with the given string.
    Syntax
    'Declaration
     
    
    Public Function FindString( _
       ByVal s As String, _
       ByVal startIndex As Integer, _
       ByVal findTargetColumnIndex As Integer _
    ) As Integer
    'Usage
     
    
    Dim instance As ListItemCollection
    Dim s As String
    Dim startIndex As Integer
    Dim findTargetColumnIndex As Integer
    Dim value As Integer
     
    value = instance.FindString(s, startIndex, findTargetColumnIndex)

    Parameters

    s
    The System.String to search for.
    startIndex
    The zero-based index of the item before the first item to be searched.
    findTargetColumnIndex
    The System.Int32 value to which column index search in.

    Return Value

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