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()