Class ConnectorCollection
Represents a connector collection.
Inheritance
Namespace: Syncfusion.SfDiagram.XForms
Assembly: Syncfusion.SfDiagram.XForms.dll
Syntax
public class ConnectorCollection : ObservableCollection<Connector>
Constructors
ConnectorCollection()
Initializes a new instance of the ConnectorCollection class. ConnectorCollection.
Declaration
public ConnectorCollection()
Properties
Count
Gets count this instance.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Gets the connectorcollection count. |
Item[Int32]
Gets the Connector at the specified index.
Declaration
public Connector this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
Property Value
Type |
---|
Connector |
Methods
Add(Connector)
Add the specified connector into this collection.
Declaration
public void Add(Connector connector)
Parameters
Type | Name | Description |
---|---|---|
Connector | connector | Connector to be added. |
add_CollectionChanged(ConnectorCollection.NotifyCollectionChangedEventHandler)
Declaration
public void add_CollectionChanged(ConnectorCollection.NotifyCollectionChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ConnectorCollection.NotifyCollectionChangedEventHandler | value |
Clear()
Clear all the connectors from this collection.
Declaration
public void Clear()
Contains(Connector)
Check the collection has corresponding element.
Declaration
public bool Contains(Connector connector)
Parameters
Type | Name | Description |
---|---|---|
Connector | connector | connector. |
Returns
Type | Description |
---|---|
System.Boolean | collection has corresponding element. |
GetEnumerator()
Gets the IEnumerator collection of Connector.
Declaration
public IEnumerator<Connector> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<Connector> | IEnumerator collection of Connector. |
IndexOf(Connector)
Returns the index of the specified connector in the collection.
Declaration
public int IndexOf(Connector connector)
Parameters
Type | Name | Description |
---|---|---|
Connector | connector | Connector to be searched. |
Returns
Type | Description |
---|---|
System.Int32 | Index of the specified connector in the collection. |
Insert(Int32, Connector)
Insert the specified connector at the specified index.
Declaration
public void Insert(int index, Connector connector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index where the node to be inserted. |
Connector | connector | Connector to be inserted. |
Remove(Connector)
Remove the specified connector from the collection.
Declaration
public void Remove(Connector connector)
Parameters
Type | Name | Description |
---|---|---|
Connector | connector | Connector to be removed. |
remove_CollectionChanged(ConnectorCollection.NotifyCollectionChangedEventHandler)
Declaration
public void remove_CollectionChanged(ConnectorCollection.NotifyCollectionChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ConnectorCollection.NotifyCollectionChangedEventHandler | value |
RemoveAt(Int32)
Remove the connector at the specified index from the collection.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the connector to be removed. |
Events
CollectionChanged
CollectionChanged.
Declaration
public event ConnectorCollection.NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type |
---|
ConnectorCollection.NotifyCollectionChangedEventHandler |