Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcListBox Class / GetItemIndex Method
The item display index.


In This Topic
    GetItemIndex Method (GcListBox)
    In This Topic
    Gets the item index based on System.Windows.Controls.ItemsControl.Items.
    Syntax
    'Declaration
     
    Public Function GetItemIndex( _
       ByVal itemDisplayIndex As Integer _
    ) As Integer
    'Usage
     
    Dim instance As GcListBox
    Dim itemDisplayIndex As Integer
    Dim value As Integer
     
    value = instance.GetItemIndex(itemDisplayIndex)
    public int GetItemIndex( 
       int itemDisplayIndex
    )

    Parameters

    itemDisplayIndex
    The item display index.

    Return Value

    The value of the item index based on System.Windows.Controls.ItemsControl.Items.
    Exceptions
    ExceptionDescription
    itemDisplayIndex is less than 0 or equals or greater than item count.
    See Also