Class NodeCollection
Represents a collection of node.
Inheritance
Namespace: Syncfusion.SfDiagram.iOS
Assembly: Syncfusion.SfDiagram.iOS.dll
Syntax
public class NodeCollection : Object
Constructors
NodeCollection(SfDiagram)
Initializes a new instance of the NodeCollection class.
Declaration
public NodeCollection(SfDiagram diagram)
Parameters
| Type | Name | Description |
|---|---|---|
| SfDiagram | diagram | Diagram instance to which the nodes need to be added. |
Properties
Count
Gets count this instance.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | Gets the nodecollection count. |
Item[Int32]
Gets the Node at the specified index.
Declaration
public Node this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The index. |
Property Value
| Type | Description |
|---|---|
| Node | returns value. |
Methods
Add(Node)
Add the specified node into this collection.
Declaration
public void Add(Node node)
Parameters
| Type | Name | Description |
|---|---|---|
| Node | node | Node to be added. |
Clear()
Clear all the nodes from this collection.
Declaration
public void Clear()
GetEnumerator()
Gets the IEnumerator collection of Node.
Declaration
public IEnumerator<Node> GetEnumerator()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerator<Node> | return GetEnumerator. |
IndexOf(Node)
Returns the index of the specified node in the collection.
Declaration
public int IndexOf(Node node)
Parameters
| Type | Name | Description |
|---|---|---|
| Node | node | Node to be searched. |
Returns
| Type | Description |
|---|---|
| System.Int32 | return IndexOf. |
Insert(Int32, Node)
Insert the specified node at the specified index.
Declaration
public void Insert(int index, Node node)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | Index where the node to be inserted. |
| Node | node | Node to be inserted. |
Remove(Node)
Remove the specified node from the collection.
Declaration
public void Remove(Node node)
Parameters
| Type | Name | Description |
|---|---|---|
| Node | node | Node to be removed. |
RemoveAt(Int32)
Remove the node at the specified index from the collection.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | Index of the node to be removed. |