10 implementations of Component
System.ComponentModel.TypeConverter (2)
System\ComponentModel\Container.cs (1)
256public IComponent Component { get; }
System\ComponentModel\NestedContainer.cs (1)
116public IComponent Component { get; }
System.Windows.Forms (2)
System\Windows\Forms\ActiveX\Control.AxSourcingSite.cs (1)
28public IComponent Component { get; }
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (1)
34IComponent ISite.Component => _comp;
System.Windows.Forms.Design (3)
System\ComponentModel\Design\CollectionEditor.PropertyGridSite.cs (1)
19public IComponent Component { get; }
System\ComponentModel\Design\DesignerHost.Site.cs (1)
187IComponent ISite.Component => _component;
System\Windows\Forms\Design\DataGridViewComponentPropertyGridSite.cs (1)
22public IComponent Component { get; }
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (1)
172public IComponent Component { get; }
System.Windows.Forms.Tests (2)
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (1)
210public IComponent Component { get; }
System\Windows\Forms\PropertyGridTests.cs (1)
4270public IComponent Component => null;
28 references to Component
System.ComponentModel.TypeConverter (5)
System\ComponentModel\Container.cs (5)
121site.Component.Site = null; 122site.Component.Dispose(); 146result[i] = _sites![i]!.Component; 230if (s?.Name != null && string.Equals(s.Name, name, StringComparison.OrdinalIgnoreCase) && s.Component != component) 232InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)TypeDescriptor.GetAttributes(s.Component)[typeof(InheritanceAttribute)]!;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1187if (s is not null && s.Name is not null && string.Equals(s.Name, siteName, StringComparison.OrdinalIgnoreCase) && s.Component != component)
System\Windows\Forms\Design\DesignerFrame.cs (2)
144changeService.OnComponentChanging(_designerSite.Component); 145changeService.OnComponentChanged(_designerSite.Component);
System.Windows.Forms.Design.Tests (17)
System\ComponentModel\Design\DesignerHostTests.cs (8)
284Assert.Same(component1, component1.Site.Component); 295Assert.Same(component2, component2.Site.Component); 306Assert.Same(component3, component3.Site.Component); 317Assert.Same(component4, component4.Site.Component); 339Assert.Same(component1, component1.Site.Component); 350Assert.Same(component2, component2.Site.Component); 361Assert.Same(component3, component3.Site.Component); 372Assert.Same(component4, component4.Site.Component);
System\ComponentModel\Design\SiteNestedContainerTests.cs (9)
77Assert.Same(component1, nestedSite.Component); 186Assert.Same(component1, component1.Site.Component); 197Assert.Same(component2, component2.Site.Component); 208Assert.Same(component3, component3.Site.Component); 219Assert.Same(component4, component4.Site.Component); 243Assert.Same(component1, component1.Site.Component); 254Assert.Same(component2, component2.Site.Component); 265Assert.Same(component3, component3.Site.Component); 276Assert.Same(component4, component4.Site.Component);
System.Windows.Forms.Tests (3)
System\Windows\Forms\ColumnHeaderTests.cs (1)
923.Setup(s => s.Component)
System\Windows\Forms\ToolStripControlHostTests.cs (2)
1790Assert.Same(c, c.Site.Component); 1800Assert.Same(c, c.Site.Component);