ListBox::IntegerCollection::Add Method (Int32)

 

Adds a unique integer to the collection in sorted order.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
int Add(
	int item
)

Parameters

item
Type: System::Int32

The integer to add to the collection.

Return Value

Type: System::Int32

The index of the added item.

Exception Condition
SystemException

There is insufficient space available to store the new item.

.NET Framework
Available since 2.0
Return to top
Show: