Class NodeCollection
A collection of child nodes owned by a parent node. Manages access to the collection while maintaing parent-child linkage.
Inherited Members
Namespace: SharpAssimp
Assembly: SharpAssimp.dll
Syntax
public sealed class NodeCollection : IList<Node?>, ICollection<Node?>, IEnumerable<Node?>, IEnumerable
Properties
| Edit this page View SourceCount
Gets the number of elements contained in the ICollection<T>.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
IsReadOnly
Gets a value indicating whether the ICollection<T> is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
bool | true if the ICollection<T> is read-only; otherwise, false. |
this[int]
Gets or sets the element at the specified index.
Declaration
public Node? this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index | The child index |
Property Value
Type | Description |
---|---|
Node |
Methods
| Edit this page View SourceAdd(Node?)
Adds an item to the ICollection<T>.
Declaration
public void Add(Node? item)
Parameters
Type | Name | Description |
---|---|---|
Node | item | The object to add to the ICollection<T>. |
AddRange(Node[])
Adds a range of items to the list.
Declaration
public void AddRange(Node[] items)
Parameters
Type | Name | Description |
---|---|---|
Node[] | items | Item array |
Clear()
Removes all items from the ICollection<T>.
Declaration
public void Clear()
Contains(Node?)
Determines whether the ICollection<T> contains a specific value.
Declaration
public bool Contains(Node? item)
Parameters
Type | Name | Description |
---|---|---|
Node | item | The object to locate in the ICollection<T>. |
Returns
Type | Description |
---|---|
bool | true if |
CopyTo(Node?[], int)
Copies collection contents to the array
Declaration
public void CopyTo(Node?[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
Node[] | array | The array to copy to. |
int | arrayIndex | Index of the array to start copying. |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<Node> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<Node> | A IEnumerator<T> that can be used to iterate through the collection. |
IndexOf(Node?)
Determines the index of a specific item in the IList<T>.
Declaration
public int IndexOf(Node? item)
Parameters
Type | Name | Description |
---|---|---|
Node | item | The object to locate in the IList<T>. |
Returns
Type | Description |
---|---|
int | The index of |
Insert(int, Node?)
Inserts an item to the IList<T> at the specified index.
Declaration
public void Insert(int index, Node? item)
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index at which |
Node | item | The object to insert into the IList<T>. |
Remove(Node?)
Removes the first occurrence of a specific object from the ICollection<T>.
Declaration
public bool Remove(Node? item)
Parameters
Type | Name | Description |
---|---|---|
Node | item | The object to remove from the ICollection<T>. |
Returns
Type | Description |
---|---|
bool | true if |
RemoveAt(int)
Removes the IList<T> item at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index of the item to remove. |