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
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(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
Returns a string that represents the current object.
(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