GetCategory

Category? GetCategory(this Element element)

Returns the category object of the element, or null when not available.

Parameters

  • elementElement

    The element instance.

Returns: The Category, or null if unavailable.

Example

Category? cat = element.GetCategory();
TaskDialog.Show("Category", cat?.Name ?? "(none)");