documentationfor yFiles for HTML 2.6

Method Return Values

fromCandidates (IPortCandidate)in IPortCandidateProviderCreates an implementation of an IPortCandidateProvider that provides only the given port candidates.
fromCandidates (IEnumerable<IPortCandidate>)in IPortCandidateProviderCreates an implementation of an IPortCandidateProvider that provides only the given port candidates.
fromNodeCenter (INode)in IPortCandidateProviderCreates a trivial implementation of an IPortCandidateProvider that always returns exactly one candidate that is centered at the node's layout.
fromShapeGeometry (IPortOwner, number)in IPortCandidateProviderCreates an implementation of IPortCandidateProvider that works for IPortOwner implementations that have IShapeGeometry instances in their lookup.
fromShapeGeometry (IPortOwner, boolean, number, number)in IPortCandidateProviderCreates an implementation of IPortCandidateProvider that works for IPortOwner implementations that have IShapeGeometry instances in their lookup.