34 lines
1.9 KiB
C#
34 lines
1.9 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Provides functionality for containers. Containers are objects that logically contain zero or more components.</summary>
|
|
// Token: 0x02000089 RID: 137
|
|
[ComVisible(true)]
|
|
public interface IContainer : IDisposable
|
|
{
|
|
/// <summary>Gets all the components in the <see cref="T:System.ComponentModel.IContainer" />.</summary>
|
|
/// <returns>A collection of <see cref="T:System.ComponentModel.IComponent" /> objects that represents all the components in the <see cref="T:System.ComponentModel.IContainer" />.</returns>
|
|
// Token: 0x17000147 RID: 327
|
|
// (get) Token: 0x060004D9 RID: 1241
|
|
ComponentCollection Components { get; }
|
|
|
|
/// <summary>Adds the specified <see cref="T:System.ComponentModel.IComponent" /> to the <see cref="T:System.ComponentModel.IContainer" /> at the end of the list.</summary>
|
|
/// <param name="component">The <see cref="T:System.ComponentModel.IComponent" /> to add. </param>
|
|
// Token: 0x060004DA RID: 1242
|
|
void Add(IComponent component);
|
|
|
|
/// <summary>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.</summary>
|
|
/// <param name="component">The <see cref="T:System.ComponentModel.IComponent" /> to add. </param>
|
|
/// <param name="name">The unique, case-insensitive name to assign to the component.-or- null that leaves the component unnamed. </param>
|
|
// Token: 0x060004DB RID: 1243
|
|
void Add(IComponent component, string name);
|
|
|
|
/// <summary>Removes a component from the <see cref="T:System.ComponentModel.IContainer" />.</summary>
|
|
/// <param name="component">The <see cref="T:System.ComponentModel.IComponent" /> to remove. </param>
|
|
// Token: 0x060004DC RID: 1244
|
|
void Remove(IComponent component);
|
|
}
|
|
}
|