_OlkComboBox.AddItem(String, Object) 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.
Adds an item to the list, optionally specifying an index for the new item to appear in the list.
public void AddItem (string ItemText, object Index);
Public Sub AddItem (ItemText As String, Optional Index As Object)
Parameters
- ItemText
- String
Value to be added to the list in the combo box.
- Index
- Object
A 0-based value that specifies the order of the new item in the list.
Remarks
If the value of Index
is equal to or larger than the number of elements in the list, the new item will be added to the end of the list.
Applies to
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk