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 (port-removed) 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
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 to which the port was attached to before.
Properties
Gets the item that is the subject of the event.
Defined in
Gets the owner of the port that was connected to before the event happened.
Property Value
The old owner.