Indicates whether elements of the specified category are eligible as displaced elements.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2014
Syntax
C# |
---|
public static bool CanCategoryBeDisplaced( ElementId categoryId ) |
Visual Basic |
---|
Public Shared Function CanCategoryBeDisplaced ( _ categoryId As ElementId _ ) As Boolean |
Visual C++ |
---|
public: static bool CanCategoryBeDisplaced( ElementId^ categoryId ) |
Parameters
- categoryId
- Type: Autodesk.Revit.DB..::..ElementId
Category id of element to be replaced.
Return Value
Returns true if elements of this category can be displaced, and false otherwise.
Remarks
Elements may be disallowed as displaced elements for reasons other than their category.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |