A specialized subclass of the ItemEventArgs<T> class that is bound to the IPort type and carries additional IPortOwner information.
Inheritance Hierarchy
EventArgs
ItemEventArgs<IPort>
PortEventArgs
Remarks
Since for some events (PortRemoved) it is unclear what owner the port had been attached 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.PortEventArgs
Constructors
Initializes a new instance of the PortEventArgs class.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- port - IPort
- The port to assign to the item property.
- owner - IPortOwner
- The owner of the port the port was attached to.
Properties
Gets the item that is the subject of the event.
Gets the owner the port the was connected to before the event happened.