Element.IsValidType(ElementId)
Method
Description:
Checks if given type is valid for this element.
Checks if given type is valid for this element.
Remarks:
A type is valid for an element if it can be assigned to the element.
A type is valid for an element if it can be assigned to the element.
Parameters
Parameter | Type | Description |
---|---|---|
typeId | ElementId | ElementId of the type to check. |
Return Value
Type | Description |
---|---|
Boolean | True if element can have a type assigned and this type is valid for this element, false otherwise. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |