TreeNodeCollection.IList.Add(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在樹節點集合的末端新增一個物件。
virtual int System.Collections.IList.Add(System::Object ^ node) = System::Collections::IList::Add;
int IList.Add(object node);
int IList.Add(object? node);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (node As Object) As Integer Implements IList.Add
參數
- node
- Object
要加入樹節點集合的物件。
傳回
該 的零基索引值 TreeNode 被加入樹節點集合中。
實作
例外狀況
node 是 null。
備註
若 node 不是 ,該TreeNodeCollection方法將使用類別方法回傳IList.AddToStringTreeNode的字串。