Click or drag to resize

IMcObjectAncestorMcObject Property

The closest "ancestor" McObject with a given TagNumber or the "root" ancestor McObject.

Namespace:  MediaCy.IQL.ObjectManager
Assembly:  MediaCy.IQL.ObjectManager (in MediaCy.IQL.ObjectManager.dll) Version: 10.0.6912.0
Syntax
VB
ReadOnly Property AncestorMcObject ( 
	Optional lTagNumber As Integer = 0
) As McObject
	Get

Parameters

lTagNumber (Optional)
Type: SystemInt32
The TagNumber property of the ancestor being sought, or zero if the root ancestor is desired.

Property Value

Type: McObject
Remarks
An "ancestor" is some McObject in the chain of ParentMcObject's leading back to the root. The "root" object is the ancestor whose own ParentMcObject is NULL (i.e., it has no parent). The chain of ParentMcObject properties is searched until an ancestor matching the given lTagNumber argument is found or until the root ancestor is found if lTagNumber is zero. The property is exposes the ancestor McObject matching the given lTagNumber or the root ancestor if lTagNumber is zero. NULL is returned if a matching ancestor cannot be found or if lTagNumber is zero and this object is already a root object (has a NULL ParentMcObject).
See Also