Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​ComponentModel.​IContainer

Assembly: System.ComponentModel.Primitives

Implemented Interfaces

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

Properties

Components
Gets all the components in the <see cref="T:System.ComponentModel.IContainer" /> .

Methods

void
Add​(IComponent component)
Adds the specified <see cref="T:System.ComponentModel.IComponent" /> to the <see cref="T:System.ComponentModel.IContainer" /> at the end of the list.
component The <see cref="T:System.ComponentModel.IComponent" /> to add.
void
Add​(IComponent component, string name)
Adds the specified <see cref="T:System.ComponentModel.IComponent" /> to the <see cref="T:System.ComponentModel.IContainer" /> at the end of the list, and assigns a name to the component.
component The <see cref="T:System.ComponentModel.IComponent" /> to add.
name The unique, case-insensitive name to assign to the component. -or- <see langword="null" /> that leaves the component unnamed.
void
Remove​(IComponent component)
Removes a component from the <see cref="T:System.ComponentModel.IContainer" /> .
component The <see cref="T:System.ComponentModel.IComponent" /> to remove.