A specialized subclass of the ItemEventArgs<T> class that is bound to the IEdge type and carries additional source and target port information.
Inheritance Hierarchy
EventArgs
ItemEventArgs<IEdge>
EdgeEventArgs
Remarks
Since for some events (edge-ports-changed and edge-removed) it is unclear what sourcePort and targetPort the edge had been connected to before the event, this event can be used to carry exactly that information.
Type Details
- yFiles module
- view
Constructors
EdgeEventArgs
(edge: IEdge, sourcePort?: IPort, targetPort?: IPort, sourcePortOwner?: IPortOwner, targetPortOwner?: IPortOwner)Initializes a new instance of the EdgeEventArgs class.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- edge - IEdge
- The edge to assign to the item property.
- sourcePort - IPort
- The source port the edge was connected to before the event happened.
- targetPort - IPort
- The target port the edge was connected to before the event happened.
- sourcePortOwner - IPortOwner
- The owner of the source port the edge was connected to before the event happened.
- targetPortOwner - IPortOwner
- The owner of the target port the edge was connected to before the event happened.
Properties
Gets the item that is the subject of the event.
Defined in
Gets the source port the edge was connected to before the event happened.
Property Value
The old source port.
Gets the owner of the source port the edge was connected to before the event happened.
Property Value
The owner of the old source port.
Gets the target port the edge was connected to before the event happened.
Property Value
The old target port.
Gets the owner of the target port the edge was connected to before the event happened.
Property Value
The owner of the old target port.