Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NListBox Class / IndexOfItemWithText Method


In This Topic
    IndexOfItemWithText Method (NListBox)
    In This Topic
    Gets the index of the first list box item with the given text or -1 if an item with such text is not found.
    Syntax
    'Declaration
     
    
    Public Function IndexOfItemWithText( _
       ByVal text As System.String, _
       ByVal comparison As System.StringComparison _
    ) As System.Integer
    'Usage
     
    
    Dim instance As NListBox
    Dim text As System.String
    Dim comparison As System.StringComparison
    Dim value As System.Integer
     
    value = instance.IndexOfItemWithText(text, comparison)
    public System.int IndexOfItemWithText( 
       System.string text,
       System.StringComparison comparison
    )

    Parameters

    text
    comparison
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also