Share

FilterRule Class

Defines a boolean operation that can be used to cull elements from a document.

Inheritance Hierarchy

System.Object
  Autodesk.Revit.DB.FilterRule
    More

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

Syntax

C#

public class FilterRule : IDisposable

The FilterRule type exposes the following members.

Properties

 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.

Methods

 NameDescription
Public methodDisposeReleases all resources used by the FilterRule
Public methodElementPasses Derived classes override this method to implement the test that determines whether the given element passes this rule or not.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetRuleParameter Returns the ElementId of the parameter associated to this FilterRule if there is one, or invalidElementId if there is no associated parameter.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Inheritance Hierarchy

System.Object
  Autodesk.Revit.DB.FilterRule
    Autodesk.Revit.DB.FilterCategoryRule
    Autodesk.Revit.DB.FilterInverseRule
    Autodesk.Revit.DB.FilterValueRule
    Autodesk.Revit.DB.ParameterValuePresenceRule
    Autodesk.Revit.DB.SharedParameterApplicableRule

Was this information helpful?