[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFieldCollection.SetItem

SetItem Method

SetItem(int, DateField)

Replaces the element at the specified index.

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

The zero-based index of the element to replace.

DateField item

The new value for the element at the specified index.

Overrides
Exceptions
Type Condition
InvalidOperationException

When set the DateField of the same function to the collection, e.g. the a DateYearField is in the collection, you cannot change another field to either DateEraField or DateEraYearField.