DataGridViewComboBoxCell.ObjectCollection

Wisej.Web.DataGridViewComboBoxCell ObjectCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Represents the collection of items in a DataGridViewComboBoxCell cell.

public class ObjectCollection : IList, ICollection, IEnumerable

Properties

Count

Int32arrow-up-right: Returns the number of items in the collection.

IsReadOnly

Booleanarrow-up-right: Returns a value indicating whether this collection can be modified.

Item(index)

Objectarrow-up-right: Retrieves the item at the specified index within the collection.

Throws:

Methods

Add(item)

Adds an item to the list of items for a DataGridViewComboBoxColumn.

Parameter
Type
Description

item

An object representing the item to add to the collection.

Returns: Int32arrow-up-right. The zero-based index of the item in the collection.

Throws:

AddRange(items)

Adds a collection of items to the list.

Parameter
Type
Description

items

Collection of items to add to the list.

Clear()

Removes all items from the DataGridViewComboBoxColumn.

Contains(value)

Determines if the specified item is located within the collection.

Parameter
Type
Description

value

An object representing the item to locate in the collection.

Returns: Booleanarrow-up-right. true if the item is located within the collection; otherwise, false.

CopyTo(destination, index)

Copies the entire collection into an existing array of objects at a specified location within the array.

Parameter
Type
Description

destination

The object array to copy the collection to.

index

The location in the destination array to copy the collection to.

GetEnumerator()

Returns an enumerator that can be used to iterate through the item collection.

Returns: IEnumeratorarrow-up-right. A IEnumeratorarrow-up-right that represents the item collection.

IndexOf(value)

Retrieves the index within the collection of the specified item.

Parameter
Type
Description

value

An object representing the item to locate in the collection.

Returns: Int32arrow-up-right. The zero-based index where the item is located within the collection; otherwise, -1.

Throws:

Insert(index, item)

Inserts an item into the collection at the specified index.

Parameter
Type
Description

index

The zero-based index location where the item is inserted.

item

An object representing the item to insert.

Throws:

OnCollectionChanged(action, element)

Fires the CollectionChanged event.

Parameter
Type
Description

action

One of CollectionChangeActionarrow-up-right indicating the reason the collection has changed.

element

The element that was added or removed from the collection, or null.

Remove(value)

Removes the specified item from the DataGridViewComboBoxColumn.

Parameter
Type
Description

value

The Objectarrow-up-right to remove from the list.

RemoveAt(index)

Removes an item from the DataGridViewComboBoxColumn at the specified index.

Parameter
Type
Description

index

The index of the item to remove.

Throws:

Events

CollectionChanged

CollectionChangeEventHandlerarrow-up-right Fired when the collection changes.

Last updated

Was this helpful?