interface IContainer

in global :: System . ComponentModel

Provides functionality for containers. Containers are objects that logically contain zero or more components.


public void Add( IComponent component )

Adds the specified to the at the end of the list.

  • component The to add.

public void Add( IComponent component, string name )

Adds the specified to the at the end of the list, and assigns a name to the component.

  • component The to add.
  • name The unique, case-insensitive name to assign to the component. -or- that leaves the component unnamed.

public ComponentCollection Components { get; }

Gets all the components in the .

  • Returns A collection of objects that represents all the components in the .

public void Remove( IComponent component )

Removes a component from the .

  • component The to remove.