DataCollection | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / CanMove<T> Method
The data collection.
The original index.
The destination index.

In This Topic
    CanMove<T> Method (IDataCollectionEx)
    In This Topic
    Determines whether the item at fromIndex can be moved to toIndex.
    Syntax
    'Declaration
     
    Public Shared Function CanMove(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal fromIndex As Integer, _
       ByVal toIndex As Integer _
    ) As Boolean
    public static bool CanMove<T>( 
       IDataCollection<T> dataCollection,
       int fromIndex,
       int toIndex
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    fromIndex
    The original index.
    toIndex
    The destination index.

    Type Parameters

    T
    See Also