ElementCategoryFilter Members

The ElementCategoryFilter type exposes the following members.

Constructors

  NameDescription
Public methodElementCategoryFilter(BuiltInCategory)
Constructs a new instance of a filter to match elements by category.
Public methodElementCategoryFilter(ElementId)
Constructs a new instance of a filter to match elements by category.
Public methodElementCategoryFilter(BuiltInCategory, Boolean)
Constructs a new instance of a filter to match elements by category, with the option to match all elements which are not of the given category.
Public methodElementCategoryFilter(ElementId, Boolean)
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.

Methods

  NameDescription
Public methodDispose (Inherited from ElementFilter.)
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodPassesFilter(Element)
Applies the filter to a given element.
(Inherited from ElementFilter.)
Public methodPassesFilter(Document, ElementId)
Applies the filter to a given element.
(Inherited from ElementFilter.)
Public methodToString (Inherited from Object.)

Properties

  NameDescription
Public propertyCategoryId
The category id.
Public propertyInverted
True if the results of the filter are inverted; elements that would normally be accepted by this filter will be rejected, and elements that would normally be rejected will be accepted.
(Inherited from ElementFilter.)
Public propertyIsValidObject
Specifies whether the .NET object represents a valid Revit entity.
(Inherited from ElementFilter.)

See Also