Share via


ObjectSelectorEditor.Selector.SetSelection(Object, TreeNodeCollection) 方法

定義

將集合節點設為特定值。

public:
 bool SetSelection(System::Object ^ value, System::Windows::Forms::TreeNodeCollection ^ nodes);
public bool SetSelection (object value, System.Windows.Forms.TreeNodeCollection nodes);
public bool SetSelection (object? value, System.Windows.Forms.TreeNodeCollection? nodes);
member this.SetSelection : obj * System.Windows.Forms.TreeNodeCollection -> bool
Public Function SetSelection (value As Object, nodes As TreeNodeCollection) As Boolean

參數

value
Object

要設定的值。

nodes
TreeNodeCollection

節點集合。

傳回

如果已設定集合節點,則為 true,否則為 false

適用於