Indicates if an element can be deleted.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static bool CanDeleteElement(
Document document,
ElementId elementId
)
Parameters
- document Document
-
The document.
- elementId ElementId
-
The id of the element to check.
Return Value
Boolean
True if the element can be deleted, false otherwise.
Exceptions
See Also
Reference