ListBox.SetSelectedItems(IEnumerable) 方法

定义

设置选定项的集合。

protected:
 bool SetSelectedItems(System::Collections::IEnumerable ^ selectedItems);
protected bool SetSelectedItems (System.Collections.IEnumerable selectedItems);
member this.SetSelectedItems : System.Collections.IEnumerable -> bool
Protected Function SetSelectedItems (selectedItems As IEnumerable) As Boolean

参数

selectedItems
IEnumerable

要选择的项集合。

返回

Boolean

如果选择了所有项,则为 true;否则为 false

适用于