Document.GetSubelement(ElementId, Int32)
Method
Description:
Gets the subelement referenced by a parent id and subelement id.
Gets the subelement referenced by a parent id and subelement id.
Remarks:
null will be returned if the input id string doesn't reference to a valid element or subelement.
null will be returned if the input id string doesn't reference to a valid element or subelement.
Parameters
| Parameter | Type | Description |
|---|---|---|
| id | ElementId | Id of the element. |
| subId | Int32 | Id of the sub element. |
Return Value
| Type | Description |
|---|---|
| Subelement | The subelement referenced by the input argument. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |