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 (EdgePortsChanged and EdgeRemoved) 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-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.graph.EdgeEventArgs
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.
Gets the source port the edge was connected to before the event happened.
Gets the owner of the source port the edge was connected to before the event happened.
Gets the target port the edge was connected to before the event happened.
Gets the owner of the target port the edge was connected to before the event happened.