CurtainGrid.ChangePanelType
Method
Description:
Change the type of a curtain panel.
Change the type of a curtain panel.
Parameters
Parameter | Type | Description |
---|---|---|
panel | Element | The panel to be changed, it can be a type of <a href="ad561307-a19c-9a8a-728d-5646e90b451b.htm">Panel</a> or <a href="b5891733-c602-12df-beab-da414b58d608.htm">Wall</a>. |
newSymbol | ElementType | The new symbol, it may be of <a href="3a8ad72e-5aa7-8fef-10ba-72041fe47346.htm">PanelType</a> or <a href="aa685433-b426-5e4f-bee1-e3487bb59518.htm">WallType</a> when the panel is hosted in a curtain wall. The new symbol can only be of type <a href="3a8ad72e-5aa7-8fef-10ba-72041fe47346.htm">PanelType</a> if the Panel is hosted in a curtain system. |
Return Value
Type | Description |
---|---|
Element | If operation succeeds, the modified panel element is returned. |
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown if the input symbol can't be used for the panel. |
InvalidOperationException | Thrown when the type change failed. |