FilteredElementCollector Members


The FilteredElementCollector type exposes the following members.

Constructors

Name Description
Public method FilteredElementCollector(Document)
Constructs a new FilteredElementCollector that will search and filter the set of elements in a document.
Public method FilteredElementCollector(Document, ElementId)
Constructs a new FilteredElementCollector that will search and filter the visible elements in a view.
Public method FilteredElementCollector(Document, ICollection ElementId )
Constructs a new FilteredElementCollector that will search and filter a specified set of elements.

Methods

Name Description
Public method ContainedInDesignOption
Applies an ElementDesignOptionFilter to the collector.
Public method Dispose
Releases all resources used by the FilteredElementCollector
Public method Equals
Determines whether the specified Object is equal to the current Object .
(Inherited from Object .)
Public method Excluding
Applies an ExclusionFilter to the collector.
Public method FirstElement
Returns the first element to pass the filter(s).
Public method FirstElementId
Returns the id of the first element to pass the filter(s).
Protected method GetBasicIEnumerator
Returns an enumerator that iterates through a collection.
Public method GetElementCount
Gets the number of elements in your current filter.
Public method GetElementIdIterator
Returns an element id iterator to the elements passing the filters.
Public method GetElementIterator
Returns an element iterator to the elements passing the filters.
Public method GetEnumerator
Returns an enumerator that iterates through a collection.
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method IntersectWith
Intersects the set of elements passing the filter in this collector with the set of elements passing the filter in another collector.
Public method Static member IsViewValidForElementIteration
Identifies if the particular element is valid for iteration of drawn elements.
Public method OfCategory
Applies an ElementCategoryFilter to the collector.
Public method OfCategoryId
Applies an ElementCategoryFilter to the collector.
Public method OfClass
Applies an ElementClassFilter to the collector.
Public method OwnedByView
Applies an ElementOwnerViewFilter to the collector.
Public method ToElementIds
Returns the complete set of element ids that pass the filter(s).
Public method ToElements
Returns the complete set of elements that pass the filter(s).
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Public method UnionWith
Unites the set of elements passing the filter in this collector with the set of elements passing the filter in another collector.
Public method WhereElementIsCurveDriven
Applies an ElementIsCurveDrivenFilter to the collector.
Public method WhereElementIsElementType
Applies an ElementIsElementTypeFilter to the collector.
Public method WhereElementIsNotElementType
Applies an inverted ElementIsElementTypeFilter to the collector.
Public method WhereElementIsViewIndependent
Applies an ElementOwnerViewFilter to the collector.
Public method WherePasses
Applies an element filter to the collector.

Properties

Name Description
Public property IsValidObject
Specifies whether the .NET object represents a valid Revit entity.

See Also