Click or drag to resize

IComponentElement Methods


The IComponentElement type exposes the following members.

Methods
  NameDescription
Public methodAddAllowedComponentType
Adds a new allowed component type.
Public methodAllowAllComponentTypes
Clear allowed component types list and allow all component types
Public methodAllowedComponentTypes
Gets the allowed component schemas. Component can only refer/embed components with schema in this list.
Public methodClone
Clones the current element and returns a new element. The cloned element usesthe name provided.
(Inherited from IElement.)
Public methodEmbed(IPage)
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.
Public methodEmbed(IPageVersion)
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.
Public methodRemoveAllowedComponentType
Removes an existing allowed component type.
Public methodRemoveEmbed
Unembed the content off the component, and restore it to old component reference mode. It doesn't share the embedded content out.
Public methodShare
Unembeds the content off the component and turn it into an actual Page object and place it under the given root.
Public methodShareBack
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.
Top
See Also