_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.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應