Method OnPortAdded
OnPortAdded(string, Type, string, PortDirection, FieldExtra, ref IPortType)
PortAddition event recieved from the editor during edit mode if ExpandablePorts attribute is set. By default this function will accept all ports.
Declaration
public override bool OnPortAdded(string entryName, Type portType, string tooltip, PortDirection direction, FieldExtra extra, ref IPortType portReference)
Parameters
Type | Name | Description |
---|---|---|
string | entryName | The name of the new port |
Type | portType | Type of the port object |
string | tooltip | The tooltip. |
PortDirection | direction | The direction. |
FieldExtra | extra | The extra. |
IPortType | portReference | The port reference. |
Returns
Type | Description |
---|---|
bool | Returns true if the port is accepted |