Changing the type of an element

If you right-click an element and select Change element type, Studio opens the Change Element Type dialog. You can also select the element and then select Change element type from the Page Config commands on the menu bar.

This dialog contains a list of element types that you can substitute for the selected element within the constraints of the PCF schema. If you then select a new element type and click OK, Studio replaces the selected element with an element of the new type. It also transfers all attribute values and descendants that are valid on the new type.

However:

  • If is possible to select a new element type that does not allow one or more attributes supported by the selected (existing) element. In this case, Studio displays a message that indicates which attributes it plans to discard.
  • If it is possible to select an element type that can not contain one or more children of the selected widget. In this case, Studio displays a message that indicates which children it plans to discard.

If there are no valid element types to which you can change the selected element, Studio disables the Change element type command.