Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Geometry Namespace / Utility Class / NextItem<T> Method
The item type
The list
The item index

In This Topic
    NextItem<T> Method
    In This Topic
    Return the cyclic next item in a list.
    Syntax
    'Declaration
     
    Public Shared Function NextItem(Of T)( _
       ByVal list As IList(Of T), _
       ByVal itemIndex As Integer _
    ) As T
    public static T NextItem<T>( 
       IList<T> list,
       int itemIndex
    )

    Parameters

    list
    The list
    itemIndex
    The item index

    Type Parameters

    T
    The item type

    Return Value

    The next item or the first item of the list in the case that itemIndex is equal to the list length less one.
    See Also