See Also

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

text
Specifies the text of the item to add.
index
Specifies the zero based index for the new item.
See Also Languages SpreadsheetGear The Performance Spreadsheet Component Company 

AddItem(String,Int32) Method

SpreadsheetGear.Shapes Namespace > IControlFormat Interface > AddItem Method : AddItem(String,Int32) Method

Adds the specified list item at the specified zero based index.

[Visual Basic]
Overloads Overridable Sub AddItem( _    ByVal text As String, _    ByVal index As Integer _ )
[C#]
virtual void AddItem(    string text,    int index );
[C++]
virtual void AddItem(    string* text,    int index )
[C++/CLI]
virtual void AddItem(    String^ text,    int index )

Parameters

text
Specifies the text of the item to add.
index
Specifies the zero based index for the new item.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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

 

 


See our live Excel Reporting, Excel Charting, Excel to DataGrid and Excel Calculation Samples.

Copyright © 2003-2007 SpreadsheetGear LLC. All Rights Reserved.

SpreadsheetGear and Spreadsheet Gear are trademarks of SpreadsheetGear LLC.