Xamarin.Forms | ComponentOne
C1.Xamarin.Forms.Gauge Assembly / C1.Xamarin.Forms.Gauge Namespace / GaugeRangeCollection Class / SetItem Method
The zero-based index of the element to replace.
The new value for the element at the specified index. The value can be a null reference (Nothing in Visual Basic) for reference types.


In This Topic
    SetItem Method
    In This Topic
    Replaces the element at the specified index.
    Syntax
    'Declaration
     
    
    Protected Overrides Sub SetItem( _
       ByVal index As Integer, _
       ByVal item As GaugeRange _
    ) 
    'Usage
     
    
    Dim instance As GaugeRangeCollection
    Dim index As Integer
    Dim item As GaugeRange
     
    instance.SetItem(index, item)
    protected override void SetItem( 
       int index,
       GaugeRange item
    )

    Parameters

    index
    The zero-based index of the element to replace.
    item
    The new value for the element at the specified index. The value can be a null reference (Nothing in Visual Basic) for reference types.
    Exceptions
    ExceptionDescription
    index is less than zero. -or- index is greater than Count.
    See Also