All pages
Powered by GitBook
1 of 1

Loading...

DataGridViewComboBoxCell.ObjectCollection

Wisej.Web.DataGridViewComboBoxCell ObjectCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.0.0.0)

Represents the collection of items in a DataGridViewComboBoxCell cell.

public class ObjectCollection : IList, ICollection, IEnumerable
Public Class ObjectCollection
    Inherits IList
    Implements ICollection, IEnumerable

Properties

Count

: Returns the number of items in the collection.

IsReadOnly

: Returns a value indicating whether this collection can be modified.

Item(index)

: Retrieves the item at the specified index within the collection.

Throws:

  • The index was less than zero; or the index was greater of equal to the count of items in the collection.

Methods

Add(item)

Adds an item to the list of items for a .

Parameter
Type
Description

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

Throws:

  • The item parameter was null.

AddRange(items)

Adds a collection of items to the list.

Parameter
Type
Description

Clear()

Removes all items from the .

Contains(value)

Determines if the specified item is located within the collection.

Parameter
Type
Description

Returns: . 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

GetEnumerator()

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

Returns: . A that represents the item collection.

IndexOf(value)

Retrieves the index within the collection of the specified item.

Parameter
Type
Description

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

Throws:

  • The value parameter was null.

Insert(index, item)

Inserts an item into the collection at the specified index.

Parameter
Type
Description

Throws:

  • The item was null.

  • The index was less than zero; or the index was greater than the count of items in the collection.

Remove(value)

Removes the specified item from the .

Parameter
Type
Description

RemoveAt(index)

Removes an item from the at the specified index.

Parameter
Type
Description

Throws:

  • The index parameter was less than zero, or the index parameter was greater than or equal to the count of items in the collection.

Events

CollectionChanged

Fired when the collection changes.

item

Object

An object representing the item to add to the collection.

items

Object[]

Collection of items to add to the list.

value

Object

An object representing the item to locate in the collection.

destination

Object[]

The object array to copy the collection to.

index

Int32

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

value

Object

An object representing the item to locate in the collection.

index

Int32

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

item

Object

An object representing the item to insert.

value

Object

The Object to remove from the list.

index

Int32

The index of the item to remove.

Int32
Boolean
Object
ArgumentOutOfRangeException
DataGridViewComboBoxColumn
Int32
ArgumentNullException
DataGridViewComboBoxColumn
Boolean
IEnumerator
IEnumerator
Int32
ArgumentNullException
ArgumentNullException
ArgumentOutOfRangeException
DataGridViewComboBoxColumn
DataGridViewComboBoxColumn
ArgumentOutOfRangeException
CollectionChangeEventHandler