Xamarin.Forms | ComponentOne
C1.Xamarin.Forms.Gauge Assembly / C1.Xamarin.Forms.Gauge Namespace / GaugeRangeCollection Class / InsertItem Method
The zero-based index at which item should be inserted.
The range to be inserted.


In This Topic
    InsertItem Method
    In This Topic
    Inserts an element into the Collection at the specified index.
    Syntax
    'Declaration
     
    
    Protected Overrides Sub InsertItem( _
       ByVal index As Integer, _
       ByVal range As GaugeRange _
    ) 
    'Usage
     
    
    Dim instance As GaugeRangeCollection
    Dim index As Integer
    Dim range As GaugeRange
     
    instance.InsertItem(index, range)
    protected override void InsertItem( 
       int index,
       GaugeRange range
    )

    Parameters

    index
    The zero-based index at which item should be inserted.
    range
    The range to be inserted.
    Exceptions
    ExceptionDescription
    index is less than zero. -or- index is greater than Count.
    See Also