Share

DocumentValidation.CanDeleteElement Method

Indicates if an element can be deleted.


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

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

ExceptionCondition
ArgumentNullException A non-optional argument was null

See Also

Reference

Was this information helpful?