IComponentElement Methods |
The IComponentElement type exposes the following members.
Name | Description | |
---|---|---|
AddAllowedComponentType |
Adds a new allowed component type.
| |
AllowAllComponentTypes |
Clear allowed component types list and allow all component types
| |
AllowedComponentTypes |
Gets the allowed component schemas. Component can only refer/embed components with schema in this list.
| |
Clone |
Clones the current element and returns a new element. The cloned element usesthe name provided.
(Inherited from IElement.) | |
Embed(IPage, Boolean) |
Embeds a component. The component can be an existing Page object or newly creately that hasn't been
save to Content Store yet.
For an component created from scratch, "Id" attributes will be empty, since the embedded component doesn't need its own identification.
| |
Embed(IPageVersion, String, Boolean) |
Embeds a component. The component can be an existing Page Version object or newly creately that hasn't been
save to Content Store yet.
For an component Page Version created from scratch, "Id" attributes will be empty, since the embedded component doesn't need its own identification.
| |
RemoveAllowedComponentType |
Removes an existing allowed component type.
| |
RemoveEmbed |
Unembed the content off the component, and restore it to old component reference mode. It doesn't share the embedded content out.
| |
Share |
Unembeds the content off the component and turn it into an actual Page object and place it under the given root.
| |
ShareBack |
Unembeds the content off the component and save it back to the original component.
This process requires the embedded/override content to have the same schema as the its original component.
|