2 implementations of IComponent
System.ComponentModel.Primitives (1)
System\ComponentModel\Component.cs (1)
11public class Component : MarshalByRefObject, IComponent
System.ComponentModel.TypeConverter (1)
System\ComponentModel\MarshalByValueComponent.cs (1)
17public class MarshalByValueComponent : IComponent, IServiceProvider
77 references to IComponent
netstandard (1)
netstandard.cs (1)
328[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.IComponent))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
314[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.IComponent))]
System.ComponentModel.Primitives (14)
System\ComponentModel\Component.cs (1)
7/// Provides the default implementation for the <see cref='System.ComponentModel.IComponent'/>
System\ComponentModel\ComponentCollection.cs (6)
10public ComponentCollection(IComponent[] components) => InnerList.AddRange(components); 16public virtual IComponent? this[string? name] 23foreach (IComponent? comp in list) 39public virtual IComponent? this[int index] => (IComponent?)InnerList[index]; 41public void CopyTo(IComponent[] array, int index) => InnerList.CopyTo(array, index);
System\ComponentModel\IComponent.cs (1)
31/// associated with the <see cref='System.ComponentModel.IComponent'/>.
System\ComponentModel\IContainer.cs (5)
19/// Adds the specified <see cref='System.ComponentModel.IComponent'/> to the 22void Add(IComponent? component); 26/// Adds the specified <see cref='System.ComponentModel.IComponent'/> to the 31void Add(IComponent? component, string? name); 41void Remove(IComponent? component);
System\ComponentModel\ISite.cs (1)
25IComponent Component { get; }
System.ComponentModel.TypeConverter (58)
System\ComponentModel\ComponentResourceManager.cs (2)
130if (value is IComponent) 132ISite? site = ((IComponent)value).Site;
System\ComponentModel\Container.cs (12)
28public virtual void Add(IComponent? component) => Add(component, null); 36public virtual void Add(IComponent? component, string? name) 78/// Creates a Site <see cref='System.ComponentModel.ISite'/> for the given <see cref='System.ComponentModel.IComponent'/> 81protected virtual ISite CreateSite(IComponent component, string? name) 143IComponent[] result = new IComponent[_siteCount]; 181public virtual void Remove(IComponent? component) => Remove(component, false); 183private void Remove(IComponent? component, bool preserveSite) 212protected void RemoveWithoutUnsiting(IComponent? component) => Remove(component, true); 220protected virtual void ValidateName(IComponent component, string? name) 246internal Site(IComponent component, Container container, string? name) 256public IComponent Component { get; }
System\ComponentModel\Design\ComponentEventArgs.cs (2)
15public virtual IComponent? Component { get; } 20public ComponentEventArgs(IComponent? component)
System\ComponentModel\Design\IDesigner.cs (2)
16IComponent Component { get; } 31void Initialize(IComponent component);
System\ComponentModel\Design\IDesignerHost.cs (5)
39IComponent RootComponent { get; } 94IComponent CreateComponent(Type componentClass); 99IComponent CreateComponent(Type componentClass, string name); 124void DestroyComponent(IComponent component); 129IDesigner? GetDesigner(IComponent component);
System\ComponentModel\Design\IEventPropertyService.cs (2)
18string CreateUniqueMethodName(IComponent component, EventDescriptor e); 58bool ShowCode(IComponent component, EventDescriptor e);
System\ComponentModel\Design\IInheritanceService.cs (2)
14void AddInheritedComponents(IComponent component, IContainer container); 22InheritanceAttribute GetInheritanceAttribute(IComponent component);
System\ComponentModel\Design\IReferenceService.cs (1)
15IComponent? GetComponent(object reference);
System\ComponentModel\Design\ITypeDescriptorFilterService.cs (3)
16bool FilterAttributes(IComponent component, IDictionary attributes); 21bool FilterEvents(IComponent component, IDictionary events); 26bool FilterProperties(IComponent component, IDictionary properties);
System\ComponentModel\INestedContainer.cs (1)
19IComponent Owner { get; }
System\ComponentModel\MarshalByValueComponent.cs (1)
10/// Provides the base implementation for <see cref='System.ComponentModel.IComponent'/>,
System\ComponentModel\MemberDescriptor.cs (1)
444protected static ISite? GetSite(object? component) => (component as IComponent)?.Site;
System\ComponentModel\NestedContainer.cs (6)
21public NestedContainer(IComponent owner) 32public IComponent Owner { get; } 64protected override ISite CreateSite(IComponent component, string? name) 108internal Site(IComponent component, NestedContainer container, string? name) 116public IComponent Component { get; } 131IComponent owner = ((NestedContainer)Container).Owner;
System\ComponentModel\ReferenceConverter.cs (2)
101if (!Marshal.IsComObject(value) && value is IComponent comp) 154foreach (IComponent obj in objs)
System\ComponentModel\ReflectPropertyDescriptor.cs (2)
924IComponent? comp = component as IComponent;
System\ComponentModel\ReflectTypeDescriptionProvider.cs (6)
322IComponent? comp = instance as IComponent; 654IComponent? component = instance as IComponent; 848IComponent? comp = component as IComponent;
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (2)
162IComponent? comp = instance as IComponent;
System\ComponentModel\TypeDescriptor.cs (6)
640IComponent? component = primary as IComponent; 1275if (prov is IComponent component && component.Site != null) 1946IComponent? component = instance as IComponent; 2537public static IDesigner? CreateDesigner(IComponent component, Type designerBaseType)
System.Configuration.ConfigurationManager (3)
System\Configuration\ApplicationSettingsBase.cs (3)
18private readonly IComponent _owner; 42protected ApplicationSettingsBase(IComponent owner) : this(owner, string.Empty) 57protected ApplicationSettingsBase(IComponent owner, string settingsKey) : this(settingsKey)