SpreadsheetGear 2017
AddItem(String,Int32) Method






SpreadsheetGear.Shapes Namespace > IControlFormat Interface > AddItem Method : AddItem(String,Int32) Method
Specifies the text of the item to add.
Specifies the zero based index for the new item.
Adds the specified list item at the specified zero based index.
Syntax
'Declaration
 
Overloads Sub AddItem( _
   ByVal text As System.String, _
   ByVal index As System.Integer _
) 
'Usage
 
Dim instance As IControlFormat
Dim text As System.String
Dim index As System.Integer
 
instance.AddItem(text, index)
void AddItem( 
   System.string text,
   System.int index
)
procedure AddItem( 
    text: System.String;
    index: System.Integer
); 
function AddItem( 
   text : System.String,
   index : System.int
);
void AddItem( 
   System.string* text,
   System.int index
) 
void AddItem( 
   System.String^ text,
   System.int index
) 

Parameters

text
Specifies the text of the item to add.
index
Specifies the zero based index for the new item.
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

IControlFormat Interface
IControlFormat Members
Overload List
RemoveItem Method
RemoveAllItems Method
ListFillRange Property
List Property
ListCount Property
ListIndex Property