Spread Windows Forms 17
GrapeCity.CalcEngine Assembly / GrapeCity.CalcEngine Namespace / ArrayHelper Class / Fill<T> Method
The type of the elements of the array.
The array to be filled.
The new value for the elements in the specified range.
A 32-bit integer that represents the index in the System.Array at which filling begins.
The number of elements to copy.


In This Topic
    Fill<T> Method (ArrayHelper)
    In This Topic
    Assigns the given value of type T to the elements of the specified array which are within the range of startIndex (inclusive) and the next count number of indices.
    Syntax
    'Declaration
     
    
    Public Shared Sub Fill(Of T)( _
       ByVal array() As T, _
       ByVal value As T, _
       ByVal startIndex As Integer, _
       ByVal count As Integer _
    ) 
    'Usage
     
    
    Dim array() As T
    Dim value As T
    Dim startIndex As Integer
    Dim count As Integer
     
    ArrayHelper.Fill(Of T)(array, value, startIndex, count)
    public static void Fill<T>( 
       T[] array,
       T value,
       int startIndex,
       int count
    )

    Parameters

    array
    The array to be filled.
    value
    The new value for the elements in the specified range.
    startIndex
    A 32-bit integer that represents the index in the System.Array at which filling begins.
    count
    The number of elements to copy.

    Type Parameters

    T
    The type of the elements of the array.
    See Also