longRet = ListBox.AddString(strItem as String);
longRet = ListBox.DeleteString(intItem as Long);
longRet = ListBox.InsertString(longIndex as Long, strItem as String);
longRet = ListBox.AddString(strItem as String)
longRet = ListBox.DeleteString(intItem as Long)
longRet = ListBox.InsertString(longIndex as Long, strItem as String)
longRet = ListBox.AddString(strItem as String)
longRet = ListBox.DeleteString(intItem as Long)
longRet = ListBox.InsertString(longIndex as Long, strItem as String)
|
元素
|
说明
|
|---|---|
|
longRet
|
返回添加了字符串的索引。
|
|
strItem
|
要添加至列表框中的字符串。
|
|
intItem
|
指示要移除的项索引的整数。
|
longRet = ListBox.FindString(longStartAfter as Long, strItem as String);
longRet = ListBox.FindStringExact(longStartAfter as Long, strItem as String);
longRet = ListBox.FindString(longStartAfter as Long, strItem as String)
longRet = ListBox.FindStringExact(longStartAfter as Long, strItem as String)
longRet = ListBox.FindString(longStartAfter as Long, strItem as String)
longRet = ListBox.FindStringExact(longStartAfter as Long, strItem as String)
|
元素
|
说明
|
|---|---|
|
longRet
|
返回在其中找到字符串或 -1 (未找到字符串时) 的索引。
|
|
strItem
|
要搜索的字符串。
|
|
longStartAfter
|
表示要在其中展开搜索的索引的整数。如果设置为 -1,则搜索整个列表框。
|
var longIndex = ListBox.CurSel();
var strRet = ListBox.GetText(longIndex);
longIndex = ListBox.CurSel
strRet = ListBox.GetText(longIndex)
longIndex = ListBox.CurSel
strRet = ListBox.GetText(longIndex)
|
元素
|
说明
|
|---|---|
|
strRet
|
指定索引处的字符串。
|
|
longIndex
|
查找文本所用的整数索引。
|
ListBox.ResetContent {};
ListBox.ResetContent()
ListBox.ResetContent()