Contains Method


Tests for the existence of a definition within the set.

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

Syntax

C#
public bool Contains(
	Definition definition
)
Visual Basic
Public Function Contains ( _
	definition As Definition _
) As Boolean
Visual C++
public:
bool Contains(
	Definition^ definition
)

Parameters

definition
Type: Autodesk.Revit.DBDefinition
The definition to look for.

Return Value

True if the definition was found, false otherwise.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →