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