ListBox.IntegerCollection.Add Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: