[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.SubItemCollection.SetItem

SetItem Method

SetItem(int, SubItem)

Replaces the SubItem at the specified index.

Declaration
protected override void SetItem(int index, SubItem subItem)
Protected Overrides Sub SetItem(index As Integer, subItem As SubItem)
Parameters
Type Name Description
int index

The zero-based index of the subItem to replace.

SubItem subItem

The new value for the subItem at the specified index.

Overrides
Exceptions
Type Condition
InvalidOperationException

Can't modify SubItems of auto generated ListItem.

ArgumentNullException

subItem can't be null.

ArgumentException

subItem has been in the collection.