GetParentCategory

Category? GetParentCategory(this Element element)

Gets the parent category of the element's category, if any.

Parameters

  • elementElement

    The element instance.

Returns: The parent Category, or null if top-level/unavailable.

Example

Category? parent = element.GetParentCategory();