Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / IndexBitmap Class / Swap Method
The IndexBitmap that contains the data to swap.
A 32-bit integer that represents the index in the source at which swapping begins.
The IndexBitmap that receives the data.
A 32-bit integer that represents the number of elements to swap.


In This Topic
    Swap Method (IndexBitmap)
    In This Topic
    Swaps a range of elements from an IndexBitmap starting at the specified source index with another IndexBitmap starting at the specified target index. The length and the indexes are specified as 32-bit integers.
    Syntax
    'Declaration
     
    
    Public Shared Sub Swap( _
       ByVal sourceBitmap As IndexBitmap, _
       ByVal fromIndex As Integer, _
       ByVal targetBitmap As IndexBitmap, _
       ByVal toIndex As Integer, _
       ByVal count As Integer _
    ) 
    'Usage
     
    
    Dim sourceBitmap As IndexBitmap
    Dim fromIndex As Integer
    Dim targetBitmap As IndexBitmap
    Dim toIndex As Integer
    Dim count As Integer
     
    IndexBitmap.Swap(sourceBitmap, fromIndex, targetBitmap, toIndex, count)

    Parameters

    sourceBitmap
    The IndexBitmap that contains the data to swap.
    fromIndex
    A 32-bit integer that represents the index in the source at which swapping begins.
    targetBitmap
    The IndexBitmap that receives the data.
    toIndex
    count
    A 32-bit integer that represents the number of elements to swap.
    See Also