Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / ConditionalStyleItemCollection 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 (ConditionalStyleItemCollection)
    In This Topic
    Replaces the element at the specified index.
    Syntax
    'Declaration
     
    
    Protected Overrides NotOverridable Sub SetItem( _
       ByVal index As Integer, _
       ByVal item As ConditionalStyleItem _
    ) 
    'Usage
     
    
    Dim instance As ConditionalStyleItemCollection
    Dim index As Integer
    Dim item As ConditionalStyleItem
     
    instance.SetItem(index, item)
    protected override void SetItem( 
       int index,
       ConditionalStyleItem 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

    The index is less than 0.

    -or-

    The index is greater than Count.

    The item is a null reference (Nothing in Visual Basic).
    The item was added to another ConditionalStyleItemCollection.
    See Also