Class ConnectionPointCollection
Collection of ConnectionPoint objects.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class ConnectionPointCollection : CollectionEx, IList, ICollection, IEnumerable, ICloneable, ISerializable, IServiceReferenceHolder, IServiceReferenceProvider
Constructors
ConnectionPointCollection()
Initializes a new instance of the ConnectionPointCollection class.
Declaration
public ConnectionPointCollection()
ConnectionPointCollection(ConnectionPointCollection)
Initializes a new instance of the ConnectionPointCollection class.
Declaration
public ConnectionPointCollection(ConnectionPointCollection src)
Parameters
Type | Name | Description |
---|---|---|
ConnectionPointCollection | src | The SRC. |
ConnectionPointCollection(Node)
Initializes a new instance of the ConnectionPointCollection class.
Declaration
public ConnectionPointCollection(Node owner)
Parameters
Type | Name | Description |
---|---|---|
Node | owner | The owner. |
ConnectionPointCollection(SerializationInfo, StreamingContext)
Initializes a new instance of the ConnectionPointCollection class.
Declaration
public ConnectionPointCollection(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The info. |
System.Runtime.Serialization.StreamingContext | context | The context. |
Properties
Container
Gets or sets the container.
Declaration
public Node Container { get; set; }
Property Value
Type | Description |
---|---|
Node | The container. |
Item[Int32]
Gets or sets the ConnectionPoint at the specified index.
Declaration
public ConnectionPoint this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
Property Value
Type | Description |
---|---|
ConnectionPoint | The connection point. |
Methods
Add(ConnectionPoint)
Adds the specified port.
Declaration
public int Add(ConnectionPoint port)
Parameters
Type | Name | Description |
---|---|---|
ConnectionPoint | port | The port. |
Returns
Type | Description |
---|---|
System.Int32 | The value. |
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |
Overrides
Contains(ConnectionPoint)
Determines whether collection contains the specified port.
Declaration
public bool Contains(ConnectionPoint port)
Parameters
Type | Name | Description |
---|---|---|
ConnectionPoint | port | The port. |
Returns
Type | Description |
---|---|
System.Boolean |
|
CopyTo(ConnectionPoint[], Int32)
Copy collection members to array.
Declaration
public void CopyTo(ConnectionPoint[] ports, int index)
Parameters
Type | Name | Description |
---|---|---|
ConnectionPoint[] | ports | The ports. |
System.Int32 | index | The index. |
FindConnectionPointByID(Int32)
Finds the connection point by ID.
Declaration
public ConnectionPoint FindConnectionPointByID(int nID)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nID | The ID. |
Returns
Type | Description |
---|---|
ConnectionPoint | First end point with given ID. |
GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
public override IEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An System.Collections.IEnumerator object that can be used to iterate through the collection. |
Overrides
IndexOf(ConnectionPoint)
Port index in current collection.
Declaration
public int IndexOf(ConnectionPoint port)
Parameters
Type | Name | Description |
---|---|---|
ConnectionPoint | port | The port. |
Returns
Type | Description |
---|---|
System.Int32 | The index. |
Insert(Int32, ConnectionPoint)
Inserts port to the specified index.
Declaration
public void Insert(int index, ConnectionPoint port)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
ConnectionPoint | port | The port. |
OnChangesComplete(CollectionExEventArgs)
Raises the ChangesComplete event.
Declaration
protected override void OnChangesComplete(CollectionExEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
CollectionExEventArgs | evtArgs | The CollectionExEventArgs instance containing the event data. |
Overrides
OnValidate(ICollection)
Validates given values.
Declaration
protected override void OnValidate(ICollection values)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ICollection | values | The values to validate. |
Overrides
Exceptions
Type | Condition |
---|---|
System.InvalidCastException |
OnValidate(Object)
Validates given value.
Declaration
protected override void OnValidate(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | value to validate |
Overrides
Exceptions
Type | Condition |
---|---|
System.InvalidCastException |
RaiseChangesCompleteEvent(CollectionExEventArgs)
Raises ChangesComplete event.
Declaration
protected override void RaiseChangesCompleteEvent(CollectionExEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
CollectionExEventArgs | evtArgs | event args |
Overrides
Remove(ConnectionPoint)
Removes the specified port.
Declaration
public void Remove(ConnectionPoint port)
Parameters
Type | Name | Description |
---|---|---|
ConnectionPoint | port | The port. |