Xceed SmartUI for WinForms v3.6 Documentation
Add(String,Int32) Method


Xceed.SmartUI.v3.6 Assembly > Xceed.SmartUI Namespace > SmartItemCollection Class > Add Method : Add(String,Int32) Method
The text displayed by the SmartItem.
The index of the image displayed by the SmartItem.
Adds a default SmartItem to the collection specifying its Text and ImageIndex.
Syntax
'Declaration
 
Public Overloads Function Add( _
   ByVal text As String, _
   ByVal imageIndex As Integer _
) As Integer
'Usage
 
Dim instance As SmartItemCollection
Dim text As String
Dim imageIndex As Integer
Dim value As Integer
 
value = instance.Add(text, imageIndex)
public int Add( 
   string text,
   int imageIndex
)

Parameters

text
The text displayed by the SmartItem.
imageIndex
The index of the image displayed by the SmartItem.

Return Value

The index at which the SmartItem was added.
Requirements

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

See Also

Reference

SmartItemCollection Class
SmartItemCollection Members
Overload List