Packagecom.yworks.graph.model
Interfacepublic interface IPortCollection extends Iterable

A strongly typed readonly collection of IPorts used in implementations.

Normally, instances of this interface are obtained through the IPortOwner.ports property of IPortOwner instances, typically INode.



Public Properties
 PropertyDefined By
  count : uint
[read-only] Returns the number of elements in this collection.
IPortCollection
Public Methods
 MethodDefined By
  
getPort(index:uint):IPort
Returns the port at position index in the collection.
IPortCollection
 Inherited
Returns an iterator over a set of elements.
Iterable
Property Detail
countproperty
count:uint  [read-only]

Returns the number of elements in this collection.


Implementation
    public function get count():uint
Method Detail
getPort()method
public function getPort(index:uint):IPort

Returns the port at position index in the collection.

Parameters

index:uint — The zero-based index of the item in this collection

Returns
IPort — The item for the given index