Railing.IsValidHostForNewRailing
Method
Description:
Checks whether new railing can be created and placed on the specified host.
Checks whether new railing can be created and placed on the specified host.
Remarks:
This function will return true for stairs or ramps which can host new railings. Stairs or ramps can host new railings only when they have no associated railing and they are not in editing mode.
This function will return true for stairs or ramps which can host new railings. Stairs or ramps can host new railings only when they have no associated railing and they are not in editing mode.
Parameters
Parameter | Type | Description |
---|---|---|
document | Document | The document. |
elementId | ElementId | The element to check. |
Return Value
Type | Description |
---|---|
Boolean | True if new railing can be created and placed on the host, False otherwise. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |