RVTDocs.com

ElementCategoryFilter(ElementId, Boolean)

Constructor
Description:
Constructs a new instance of a filter to match elements by category, with the option to match all elements which are of the given category.
Syntax
public ElementCategoryFilter(
	ElementId categoryId,
	bool inverted
)
Parameters
Parameter Type Description
categoryId ElementId The category id to match.
inverted Boolean True if the filter should match all elements which are not of the given category.
Return Value
Exceptions
Exception Condition
ArgumentException The category was not valid for filtering.
ArgumentNullException A non-optional argument was null