London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Interface IContainer

Defines that a component might have child components.

Namespace: EPiServer.Shell.ViewComposition
Assembly: EPiServer.Shell.dll
Version: 10.10.4
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