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

适用于