HypernovaDesktop Components · docs
Binarymission
WinFormsTree List View › BinaryTreeListViewNodesCollection

BinaryTreeListViewNodesCollection

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.TreeControls

Implements a specialized collection for a given list of BinaryTreeListViewNode objects.

public class BinaryTreeListViewNodesCollection : IList<BinaryTreeListViewNode>, System.Collections.IList

Inherits from / implements: IList<BinaryTreeListViewNode>, System.Collections.IList

Members at a glance

BinaryTreeListViewNodesCollectionConstructs a new instance of BinaryTreeListViewNodesCollection class.
CountReturns the count of node items in the collection.
IsReadOnlyReturns whether the collection is readonly.
ItemIndexer for this collection.
AddAdds an instance of a given BinaryTreeListViewNode object into the current collection of BinaryTreeListViewNodesCollection.
AddA overloaded version of Add for adding a instance of node into the collection, based on a supplied string value for the node text.
AddAn overloaded version of Add for adding a instance of node into the collection, based on a an array of cell values applicable for each of the cell in the node, when constructing the node insatnce and adding it to the collection.
ClearThis method is provided only as a legacy support. It is advised that you use the BinaryTreeListView.ClearAllNodes() method instead of Nodes.Clear() / (IList) Nodes.Clear().
ContainsReturns whether the collection contains the given node.
CopyToCopies the given array of node obejcts.
GetEnumeratorReturns the specialised Enumerator for this collection.
IndexOfReturns the index of the given item of node, in the collection.
InsertInserts the given node object at the specified location in the collection.
RemoveRemoves the node from the collection.
RemoveAtRemoves the node item at the specified index in the collection.

Constructors

BinaryTreeListViewNodesCollection

public BinaryTreeListViewNodesCollection(BinaryTreeListViewNode collectionOwnerNode)

Constructs a new instance of BinaryTreeListViewNodesCollection class.

Properties

Count

public int Count

Returns the count of node items in the collection.

IsReadOnly

public bool IsReadOnly

Returns whether the collection is readonly.

Item

public BinaryTreeListViewNode this[int theIndex]

Indexer for this collection.

theIndex

Methods

Add

public void Add(BinaryTreeListViewNode aNode)

Adds an instance of a given BinaryTreeListViewNode object into the current collection of BinaryTreeListViewNodesCollection.

aNode
The node, to be added.

Add

public BinaryTreeListViewNode Add(string stringValue)

A overloaded version of Add for adding a instance of node into the collection, based on a supplied string value for the node text.

stringValue
The text value to be used / set for the BinaryTreeListViewCell

Add

public BinaryTreeListViewNode Add(params object[] cellValues)

An overloaded version of Add for adding a instance of node into the collection, based on a an array of cell values applicable for each of the cell in the node, when constructing the node insatnce and adding it to the collection.

cellValues
Supply an array of object instances, based on the columns you have created for the control, and thereby be able to create this instance of the node and add it ot the collection.

Returns. A constructed instance of BinaryTreeListViewNode node, so that you can set up more properties to it, and / or even add child nodes to this instance.

Clear

public void Clear()

This method is provided only as a legacy support. It is advised that you use the BinaryTreeListView.ClearAllNodes() method instead of Nodes.Clear() / (IList) Nodes.Clear().

Contains

public bool Contains(BinaryTreeListViewNode theNode)

Returns whether the collection contains the given node.

theNode

CopyTo

public void CopyTo(BinaryTreeListViewNode[] arrayOfItems, int index)

Copies the given array of node obejcts.

arrayOfItems
index

GetEnumerator

public IEnumerator<BinaryTreeListViewNode> GetEnumerator()

Returns the specialised Enumerator for this collection.

IndexOf

public int IndexOf(BinaryTreeListViewNode theItem)

Returns the index of the given item of node, in the collection.

theItem

Insert

public void Insert(int index, BinaryTreeListViewNode nodeItem)

Inserts the given node object at the specified location in the collection.

index
nodeItem

Remove

public bool Remove(BinaryTreeListViewNode nodeItem)

Removes the node from the collection.

nodeItem

RemoveAt

public void RemoveAt(int index)

Removes the node item at the specified index in the collection.

index