has_ancestor


Description:

[ Version ( deprecated = true ) ]
public bool has_ancestor (Object ancestor)

Warning: has_ancestor is deprecated.

Check if this has an ancestor ancestor somewhere up in the hierarchy.

Note:

Use has_as_ancestor instead.

MT safe. Grabs and releases this's locks.

One can e.g. check if a Element is inside a Pipeline.

Parameters:

this

a Object to check

ancestor

a Object to check as ancestor

Returns:

true if ancestor is an ancestor of this.