Add Method (NListBoxItemCollection)
Adds a new item to the collection. Note that if the object is not a NListBoxItem a new item will be created automatically and the object will be set as its tag.
'Declaration
Public Shadows Function Add( _
ByVal As System.Object _
) As System.Integer
'Usage
Dim instance As NListBoxItemCollection
Dim o As System.Object
Dim value As System.Integer
value = instance.Add(o)
public new System.int Add(
System.object
)
Parameters
- o
- The item to add.
Return Value
The index of the newly added item.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2