1 implementation of Components
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Container.cs (1)
135public virtual ComponentCollection Components
57 references to Components
System.ComponentModel.TypeConverter (3)
System\ComponentModel\ReferenceConverter.cs (2)
67object? obj = cont.Components[text]; 153ComponentCollection objs = cont.Components;
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
664return GetExtenders(cont.Components, instance, cache);
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
319if (container?.Components is { } components)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
3441&& _designerHost?.Container?.Components is ComponentCollection components)
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (1)
208ComponentCollection comps = container.Components;
System.Windows.Forms.Design (51)
System\ComponentModel\Design\ReferenceService.cs (2)
84_references = new(container.Components.Count); 85foreach (IComponent component in container.Components)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (3)
238curComp = container.Components[compName]; 462foreach (IComponent c in container.Components) 478if (c.Site.TryGetService(out INestedContainer? nested) && nested.Components.Count > 0)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (1)
249object? instance = container.Components[compName];
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.PassThroughSerializationManager.cs (1)
70Manager.PreserveNames && Manager.Container?.Components[name] is not null && _resolved.Add(name))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (4)
801typeDeclaration = _typeSerializer.Serialize(manager, LoaderHost.RootComponent, LoaderHost.Container.Components); 1055if (container.Components[finalName] is not null) 1152if (Modified && LoaderHost.Container.Components[name] is not null) 1245if (!dup && Modified && LoaderHost.Container.Components[name] is not null)
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageExtenders.cs (1)
55foreach (IComponent c in container.Components)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (4)
237instance = Container.Components[name]; 267if (Container.Components[name] is not null) 367if (Container.Components[name] is not null) 807instance = Container.Components[name];
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
262IComponent? comp = container.Components[name];
System\ComponentModel\Design\UndoEngine.cs (1)
445foreach (IComponent comp in _host.Container.Components)
System\ComponentModel\Design\UndoEngine.UndoUnit.AddRemoveUndoEvent.cs (1)
86IComponent? component = host.Container.Components[_componentName];
System\ComponentModel\Design\UndoEngine.UndoUnit.ChangeUndoEvent.cs (1)
119component = host.Container.Components[_componentName];
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
475IComponent? comp = container.Components[name];
System\ComponentModel\Design\UndoEngine.UndoUnit.RenameUndoEvent.cs (1)
29IComponent? comp = engine._host.Container.Components[_after];
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
793foreach (Component comp in host.Container.Components)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
586foreach (IComponent comp in host.Container.Components)
System\Windows\Forms\Design\CommandSet.cs (2)
2201ComponentCollection components = host.Container.Components; 3125cmd.Enabled = host.Container.Components.Count > 1;
System\Windows\Forms\Design\ComponentTray.cs (1)
514if (host.Container.Components[name] is not null)
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (3)
34suspendedComponents = new(container.Components.Count); 36foreach (IComponent component in container.Components) 234foreach (IComponent component in host.Container.Components)
System\Windows\Forms\Design\ControlCommandSet.cs (2)
851ComponentCollection components = host.Container.Components; 1290ComponentCollection comps = host.Container.Components;
System\Windows\Forms\Design\ControlDesigner.cs (2)
590for (int i = 0; i < nc.Components.Count; i++) 592if (child.Equals(nc.Components[i]))
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
876if (container is not null && container.Components[name] is not null)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1171ComponentCollection components = container.Components;
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
604ComponentCollection components = container.Components; 1424foreach (IComponent comp in container.Components)
System\Windows\Forms\Design\DesignerUtils.cs (1)
633object? existingComponent = host.Container.Components[name];
System\Windows\Forms\Design\DocumentDesigner.cs (2)
803_suspendedComponents = new(container.Components.Count + 1); 805foreach (IComponent comp in container.Components)
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
622if (container.Components[name] is not null) 2326if (name is not null && container.Components[name] is not null)
System\Windows\Forms\Design\StandardMenuStripVerb.cs (3)
114while (_host.Container.Components[name] is not null) 281while (_host.Container.Components[name] is not null) 479object existingComponent = _host.Container.Components[baseName];
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1761object existingComponent = container.Components[baseName]; 1780for (int indexer = 1; !nameCreate.IsValidName(newName) || container.Components[newName] is not null; indexer++)
System\Windows\Forms\Design\ToolStripInSituService.cs (1)
220ComponentCollection comps = _designerHost.Container.Components;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
790newItem = (ToolStripItem)host.Container.Components[name];
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
453ComponentCollection comps = _designerHost.Container.Components;