RVTDocs.com

DocumentValidation.CanDeleteElement

Method
Description:
Indicates if an element can be deleted.
Syntax
public static bool CanDeleteElement(
	Document document,
	ElementId elementId
)
Parameters
Parameter Type Description
document Document The document.
elementId ElementId The id of the element to check.
Return Value
Type Description
Boolean True if the element can be deleted, false otherwise.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null