Document.IsDefaultElementTypeIdValid
Method
Description:
Checks whether the element type id is valid for the give DefaultElmentType id.
Checks whether the element type id is valid for the give DefaultElmentType id.
Parameters
Parameter | Type | Description |
---|---|---|
defaultTypeId | ElementTypeGroup | The default element type id. |
typeId | ElementId | The element type id. |
Return Value
Type | Description |
---|---|
Boolean | True if the element type id is valid for the give DefaultElmentType id, false otherwise. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |