Document.SetDefaultElementTypeId
Method
Description:
Sets the default element type id of the given DefaultElementType id.
Sets the default element type id of the given DefaultElementType id.
Parameters
| Parameter | Type | Description |
|---|---|---|
| defaultTypeId | ElementTypeGroup | The default element type id. |
| typeId | ElementId | The element type id. |
Return Value
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The element type id typeId is invalid for the give DefaultElementType id defaultTypeId. |
| ArgumentNullException | A non-optional argument was null |
| ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |