Revit 2025 API
Category |
Tests for the existence of a category with that name within the map.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public virtual bool Contains( string key )
Public Overridable Function Contains ( key As String ) As Boolean
public: virtual bool Contains( String^ key )
abstract Contains : key : string -> bool override Contains : key : string -> bool
Parameters
- key String
- The category name to be searched for.
Return Value
BooleanThe Contains method returns True if the name is within the map, otherwise False.
See Also