SaaS CMS has officially launched! Learn more now.

Interface IContainer

Defines that a component might have child components.

Namespace: EPiServer.Shell.ViewComposition
Assembly: EPiServer.Shell.dll
Version: 8.11.0
Syntax
public interface IContainer : IComponent, ICloneable

Properties

Components

Gets the child components.

Declaration
IList<IComponent> Components { get; }
Property Value
Type Description
System.Collections.Generic.IList<IComponent>

The child components.

ContainerType

Gets or sets the ContainerType indicating if it should be handled as
shared system instances or saved per user.

Declaration
ContainerType ContainerType { get; set; }
Property Value
Type Description
ContainerType

The type of the container.

PlugInArea

The plug-in path that is used to plug-in components automatically.

Declaration
string PlugInArea { get; set; }
Property Value
Type Description
System.String

Methods

Add(IComponent)

Adds a component to the collection and returns the container to allow chaining.

Declaration
IContainer Add(IComponent component)
Parameters
Type Name Description
IComponent component

The component.

Returns
Type Description
IContainer

SortComponents(Comparison<IComponent>)

Sort the components using the specified comparison delegate.

Declaration
void SortComponents(Comparison<IComponent> comparison)
Parameters
Type Name Description
System.Comparison<IComponent> comparison

The comparison delegate determining the new component order.

Extension Methods