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


Xceed.SmartUI.v3.6 Assembly > Xceed.SmartUI Namespace > SmartItemCollection Class > Add Method : Add(String) Method
The text displayed by the SmartItem.
Adds a default SmartItem to the collection specifying its Text.
Syntax
'Declaration
 
Public Overloads Function Add( _

   ByVal text As String _

) As Integer
'Usage
 
Dim instance As SmartItemCollection

Dim text As String

Dim value As Integer

 

value = instance.Add(text)
public int Add( 

   string text

)

Parameters

text
The text displayed by the SmartItem.

Return Value

The index at which the SmartItem was added.
Remarks

The default SmartItem that will be added is different for each SmartControl.

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