queryParent Method

Query for the parent of the specified element.

queryParent(elementId: string): undefined | string

@returns The identifier of the element's parent or undefined if the element has no parent

@throws IModelError if the element does not exist

Parameter Type Description
elementId string The element to check for a parent

Returns - undefined | string

The identifier of the element's parent or undefined if the element has no parent

Defined in

Last Updated: 16 April, 2024