IsAnyOfCategoryIds
bool IsAnyOfCategoryIds(this Element element, params ElementId[] categoryIds)True if the element's category id matches any of the given ids.
Parameters
- elementElement
The element instance.
- categoryIdsElementId[]
Category ids to check.
Returns: True if any match; otherwise false.
Example
bool ok = element.IsAnyOfCategoryIds(id1, id2, id3);