_OlkListBox.GetItem(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Obtains a String (string in C#) that represents an item at the specified location in the list.
public:
System::String ^ GetItem(int Index);
public string GetItem (int Index);
Public Function GetItem (Index As Integer) As String
Parameters
- Index
- Int32
A zero-based value that specifies the location of an item in the list.
Returns
A String (string in C#) value that represents the item at the specified location in the list.
Remarks
If Index
is outside the range of the allowed values (between zero and ListCount-1), then an out-of-bounds error will be returned.