Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ListBox.AddItem Method 

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

'Usage
Dim Text As Object
Dim Index As Object
Dim returnValue As Object
Dim listBox1 As ListBox
returnValue = listBox1.AddItem(Text, Index)

object AddItem(
	[In] object Text, 
	[In, Optional] object Index
);
public System.Object AddItem(
	/*in*/System.Object Text, 
	/*in*/System.Object Index
);
function AddItem(
	 Text : Object, 
	 Index : Object
) : Object;

Parameters

Text

This parameter is intended for internal use only.

Index

This parameter is intended for internal use only.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Community Additions

Show:
© 2014 Microsoft