Class PortCollection
Represents a collection of port.
Inheritance
System.Object
PortCollection
Namespace: Syncfusion.SfDiagram.XForms
Assembly: Syncfusion.SfDiagram.XForms.dll
Syntax
public class PortCollection : ObservableCollection<Port>
Constructors
PortCollection()
Declaration
public PortCollection()
Properties
Count
Gets count this instance.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Gets the portcollection count. |
Item[Int32]
Gets the Port at the specified index.
Declaration
public Port this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
Property Value
Type |
---|
Port |
Methods
Add(Port)
Add the specified port into this collection.
Declaration
public void Add(Port port)
Parameters
Type | Name | Description |
---|---|---|
Port | port | Port to be added. |
add_CollectionChanged(PortCollection.NotifyCollectionChangedEventHandler)
Declaration
public void add_CollectionChanged(PortCollection.NotifyCollectionChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
PortCollection.NotifyCollectionChangedEventHandler | value |
Clear()
Clear all the ports from this collection.
Declaration
public void Clear()
Contains(Port)
Contains.
Declaration
public bool Contains(Port port)
Parameters
Type | Name | Description |
---|---|---|
Port | port | port. |
Returns
Type | Description |
---|---|
System.Boolean | Gets Contains. |
GetEnumerator()
Gets the IEnumerator collection of Port.
Declaration
public IEnumerator<Port> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<Port> | Gets the IEnumerator. |
IndexOf(Port)
Returns the index of the specified port in the collection.
Declaration
public int IndexOf(Port port)
Parameters
Type | Name | Description |
---|---|---|
Port | port | Port to be searched. |
Returns
Type | Description |
---|---|
System.Int32 | Gets the index of the specified port in the collection. |
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 | Index where the port to be inserted. |
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 | m_formports to be removed. |
remove_CollectionChanged(PortCollection.NotifyCollectionChangedEventHandler)
Declaration
public void remove_CollectionChanged(PortCollection.NotifyCollectionChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
PortCollection.NotifyCollectionChangedEventHandler | value |
RemoveAt(Int32)
Remove the port at the specified index from the collection.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the port to be removed. |
Events
CollectionChanged
CollectionChanged.
Declaration
public event PortCollection.NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type |
---|
PortCollection.NotifyCollectionChangedEventHandler |