79 types derived from Component
System.CodeDom (1)
System\CodeDom\Compiler\CodeDomProvider.cs (1)
14public abstract class CodeDomProvider : Component
System.ComponentModel.EventBasedAsync (1)
System\ComponentModel\BackgroundWorker.cs (1)
11public class BackgroundWorker : Component
System.ComponentModel.TypeConverter (1)
System\Timers\Timer.cs (1)
15public partial class Timer : Component, ISupportInitialize
System.Data.Common (4)
System\Data\Common\DataAdapter.cs (1)
13public class DataAdapter : Component, IDataAdapter
System\Data\Common\DbCommand.cs (1)
11public abstract class DbCommand : Component, IDbCommand, IAsyncDisposable
System\Data\Common\DBCommandBuilder.cs (1)
13public abstract class DbCommandBuilder : Component
System\Data\Common\DbConnection.cs (1)
11public abstract class DbConnection : Component, IDbConnection, IAsyncDisposable
System.Diagnostics.EventLog (2)
artifacts\obj\System.Diagnostics.EventLog\Debug\net10.0\System.Diagnostics.EventLog.notsupported.cs (2)
25public partial class EventLog : System.ComponentModel.Component, System.ComponentModel.ISupportInitialize 101public sealed partial class EventLogEntry : System.ComponentModel.Component, System.Runtime.Serialization.ISerializable
System.Diagnostics.PerformanceCounter (1)
artifacts\obj\System.Diagnostics.PerformanceCounter\Debug\net10.0\System.Diagnostics.PerformanceCounter.notsupported.cs (1)
94public sealed partial class PerformanceCounter : System.ComponentModel.Component, System.ComponentModel.ISupportInitialize
System.Diagnostics.Process (3)
System\Diagnostics\Process.cs (1)
25public partial class Process : Component
System\Diagnostics\ProcessModule.cs (1)
14public class ProcessModule : Component
System\Diagnostics\ProcessThread.cs (1)
17public partial class ProcessThread : Component
System.DirectoryServices (2)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (2)
144public partial class DirectoryEntry : System.ComponentModel.Component 201public partial class DirectorySearcher : System.ComponentModel.Component
System.Drawing.Common (1)
Special\NotSupported.cs (1)
2962public partial class PrintDocument : System.ComponentModel.Component
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
20public partial class FileSystemWatcher : Component, ISupportInitialize
System.IO.Ports (2)
System\IO\Ports\SerialPort.cs (1)
11public partial class SerialPort : Component
System\IO\Ports\SerialPort.Unix.cs (1)
12public partial class SerialPort : Component
System.Management (3)
artifacts\obj\System.Management\Debug\net10.0\System.Management.notsupported.cs (3)
136public partial class ManagementBaseObject : System.ComponentModel.Component, System.ICloneable, System.Runtime.Serialization.ISerializable 223public partial class ManagementEventWatcher : System.ComponentModel.Component 356public partial class ManagementObjectSearcher : System.ComponentModel.Component
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.cs (1)
13public partial class Ping : Component
System.Net.WebClient (1)
System\Net\WebClient.cs (1)
19public class WebClient : Component
System.ServiceProcess.ServiceController (4)
artifacts\obj\System.ServiceProcess.ServiceController\Debug\net10.0\System.ServiceProcess.ServiceController.netcoreapp.notsupported.cs (2)
9public partial class ServiceBase : System.ComponentModel.Component 13public partial class ServiceController : System.ComponentModel.Component
artifacts\obj\System.ServiceProcess.ServiceController\Debug\net10.0\System.ServiceProcess.ServiceController.notsupported.cs (2)
21public partial class ServiceBase : System.ComponentModel.Component 61public partial class ServiceController : System.ComponentModel.Component
System.Windows.Extensions (1)
artifacts\obj\System.Windows.Extensions\Debug\net10.0\System.Windows.Extensions.notsupported.cs (1)
10public partial class SoundPlayer : System.ComponentModel.Component, System.Runtime.Serialization.ISerializable
System.Windows.Forms (13)
System\Windows\Forms\Control.cs (1)
42Component,
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
24public sealed partial class ImageList : Component, IHandle<HIMAGELIST>
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
17public partial class ColumnHeader : Component, ICloneable
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
15public partial class ToolStripPanelRow : Component, IArrangedElement
System\Windows\Forms\DataBinding\BindableComponent.cs (1)
12public abstract class BindableComponent : Component, IBindableComponent
System\Windows\Forms\DataBinding\BindingSource.cs (1)
17public partial class BindingSource : Component,
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
14public abstract class CommonDialog : Component
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (1)
23public partial class ErrorProvider : Component, IExtenderProvider, ISupportInitialize
System\Windows\Forms\Help\HelpProvider.cs (1)
18public class HelpProvider : Component, IExtenderProvider
System\Windows\Forms\Layout\ArrangedElement.cs (1)
11internal abstract class ArrangedElement : Component, IArrangedElement
System\Windows\Forms\NotifyIcon.cs (1)
17public sealed partial class NotifyIcon : Component
System\Windows\Forms\Timer.cs (1)
17public class Timer : Component
System\Windows\Forms\ToolTip\ToolTip.cs (1)
17public partial class ToolTip : Component, IExtenderProvider, IHandle<HWND>
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\FolderNameEditor.FolderBrowser.cs (1)
10protected sealed class FolderBrowser : Component
System.Windows.Forms.Design.Tests (34)
System\ComponentModel\Design\ComponentDesignerTests.cs (5)
2998private class IPersistComponentSettingsComponent : Component, IPersistComponentSettings 3011private class CustomComponent : Component 3024private class StringDefaultPropertyComponent : Component 3030private class IntDefaultPropertyComponent : Component 3036private class DefaultEventComponent : Component
System\ComponentModel\Design\DesignerHostTests.cs (11)
3187private class DesignerComponent : Component 3199private class RootDesignerComponent : Component 3209private class RootExtenderProviderDesignerComponent : Component, IExtenderProvider 3222private class NonInitializingDesignerComponent : Component 3235private class ThrowingInitializingDesignerComponent : Component 3248private class CheckoutExceptionThrowingInitializingDesignerComponent : Component 3261private class ThrowingDesignerDisposeComponent : Component 3266private class ThrowingDisposeDesignerComponent : Component 3286private class ThrowingRootDesignerDisposeComponent : Component 3291private class ThrowingDisposeRootDesignerComponent : Component 3303private class CustomTypeDescriptionProviderComponent : Component
System\ComponentModel\Design\DesignSurfaceTests.cs (9)
1757private class DesignerComponent : Component 1774private class RootDesignerComponent : Component 1785private class NullSupportedTechnologiesRootDesignerComponent : Component 1796private class EmptySupportedTechnologiesRootDesignerComponent : Component 1812private class ComponentWithPublicConstructor : Component 1839private class ComponentWithPrivateDefaultConstructor : Component 1851private class ComponentWithIContainerConstructor : Component 1878private class ComponentWithNoMatchingConstructor : Component 1892private class ComponentWithPrivateIContainerConstructor : Component
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (1)
1682private class DataClass : Component
System\ComponentModel\Design\SiteNestedContainerTests.cs (8)
1059private class DesignerComponent : Component 1071private class RootDesignerComponent : Component 1076private class RootExtenderProviderDesignerComponent : Component, IExtenderProvider 1089private class NonInitializingDesignerComponent : Component 1102private class ThrowingInitializingDesignerComponent : Component 1115private class CheckoutExceptionThrowingInitializingDesignerComponent : Component 1130private class DisposingDesignerComponent : Component 1135private class CustomTypeDescriptionProviderComponent : Component
System.Windows.Forms.Tests (2)
System\Windows\Forms\Design\EventsTabTests.cs (2)
139private class CustomDesignerEventService : Component, IDesignerEventService 176private class ClassWithDefaultEvent : Component
196 instantiations of Component
System.Windows.Forms.Design.Tests (179)
System\ComponentModel\Design\ArrayEditorTests.cs (2)
54yield return new object[] { new Component() }; 78using Component component = new();
System\ComponentModel\Design\CollectionEditorTests.cs (4)
64yield return new object[] { new Component() }; 88using Component component = new(); 204using Component result = new(); 302using Component result = new();
System\ComponentModel\Design\CollectionFormTests.cs (4)
451yield return new object[] { new Component() }; 476using Component component = new(); 555using Component result = new(); 655using Component result = new();
System\ComponentModel\Design\ComponentDesignerTests.cs (49)
49using Component component = new(); 118using Component component = new() 156using Component component = new() 174foreach (ICollection associatedComponents in new object[] { null, Array.Empty<object>(), new object[] { new Component() } }) 188using Component component = new() 236using Component component = new(); 266using Component component = new() 300yield return new object[] { new Component() }; 314using Component component = new() 337using Component component = new(); 371using Component component = new() 403using Component component = new() 430using Component component = new(); 459using Component component = new() 484.Returns(new Component()); 521using Component component = new() 601using Component component = new() 684using Component component = new() 831using Component rootComponent = new() 1056using Component rootComponent = new() 1164using Component rootComponent = new() 1257using Component rootComponent = new() 1348using Component rootComponent = new() 1442using Component rootComponent = new() 1549using Component rootComponent = new() 1647using Component rootComponent = new() 1726using Component rootComponent = new() 1784using Component component = new() 1843using Component component = new() 1919using Component rootComponent = new() 1972using Component component = new() 1987using Component component = new(); 2004using Component component = new(); 2020using Component component = new(); 2079.Returns(new Component()); 2114using Component component = new() 2129using Component component = new(); 2171using Component component = new() 2229using Component component = new() 2245using Component component = new(); 2364using Component component = new(); 2492using Component component = new(); 2521using Component component = new(); 2550using Component component = new(); 2579using Component component = new(); 2648yield return new object[] { new Component() }; 2671yield return new object[] { new Component { Site = mockSite.Object } }; 2688using Component component = new(); 2797using Component component = new();
System\ComponentModel\Design\DesignerActionListTests.cs (4)
14yield return new object[] { new Component() }; 30DesignerActionList list = new(new Component()) 44yield return new object[] { new Component(), null }; 54yield return new object[] { new Component { Site = mockSite.Object }, o };
System\ComponentModel\Design\DesignerActionMethodItemTests.cs (1)
169yield return new object[] { new Component() };
System\ComponentModel\Design\DesignerActionPropertyItemTests.cs (1)
72yield return new object[] { new Component() };
System\ComponentModel\Design\DesignerActionServiceTests.cs (48)
56using Component component = new(); 77Component component = new(); 112using Component component = new(); 133using Component component = new(); 159Assert.Throws<ArgumentNullException>("designerActionListCollection", () => service.Add(new Component(), (DesignerActionListCollection)null)); 166Component component = new(); 195using Component component1 = new(); 196using Component component2 = new(); 231Assert.False(service.Contains(new Component())); 238service.Add(new Component(), new DesignerActionListCollection()); 239Assert.False(service.Contains(new Component())); 355using Component component = new(); 358Assert.Empty(service.GetComponentActions(new Component(), type)); 359Assert.Empty(service.GetComponentActions(new Component(), type)); 368Assert.Empty(service.GetComponentActions(new Component(), type)); 376using Component component = new(); 464Component component = new() 492Component component = new() 536Component component = new() 592Component component = new() 619Assert.Throws<ArgumentNullException>("actionLists", () => service.GetComponentDesignerActions(new Component(), null)); 626Component component = new(); 630service.GetComponentServiceActions(new Component(), actionListBuffer); 639service.GetComponentServiceActions(new Component(), actionListBuffer); 654Assert.Throws<ArgumentNullException>("actionLists", () => service.GetComponentServiceActions(new Component(), null)); 661using Component component = new(); 680using Component component1 = new(); 681using Component component2 = new(); 717service.Add(new Component(), new DesignerActionListCollection()); 718service.Remove(new Component()); 725service.Remove(new Component()); 732using Component component1 = new(); 733using Component component2 = new(); 734using Component component3 = new(); 735using Component component4 = new(); 844Component component = new(); 861using Component component1 = new(); 862using Component component2 = new(); 899using Component component1 = new(); 900using Component component2 = new(); 901using Component component3 = new(); 902using Component component4 = new(); 973using Component component = new(); 975service.Remove(new Component(), new CustomDesignerActionList(null)); 984service.Remove(new Component(), new CustomDesignerActionList(null)); 991using Component component1 = new(); 992using Component component2 = new(); 1038Assert.Throws<ArgumentNullException>("actionList", () => service.Remove(new Component(), null));
System\ComponentModel\Design\DesignerHostTests.cs (9)
277using Component component4 = new(); 332using Component component4 = new(); 1551using Component nestedComponent = new(); 1645yield return new object[] { new Component() }; 2234ComponentCollection collection = new(new Component[] { new() }); 2255Assert.Null(host.GetDesigner(new Component())); 2264Assert.Null(host.GetDesigner(new Component())); 2757host2.Container.Remove(new Component()); 2773host2.Container.Remove(new Component());
System\ComponentModel\Design\DesignSurfaceTests.cs (5)
980using Component component = new(); 1017Assert.Throws<ObjectDisposedException>(() => surface.CreateDesigner(new Component(), true)); 1018Assert.Throws<ObjectDisposedException>(() => surface.CreateDesigner(new Component(), false)); 1132using Component ownerComponent = new(); 1143using Component ownerComponent = new();
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (10)
224Assert.False(property.CanResetValue(new Component())); 225Assert.Equal(0, property.GetValue(new Component())); 226property.SetValue(new Component(), 1); 227Assert.Equal(1, property.GetValue(new Component())); 228property.ResetValue(new Component()); 229Assert.Equal(1, property.GetValue(new Component())); 230Assert.True(property.ShouldSerializeValue(new Component())); 717Component component = new(); 806Component component = new(); 874yield return new object[] { new Component(), null };
System\ComponentModel\Design\SiteNestedContainerTests.cs (31)
67using Component ownerComponent = new() 174using Component owningComponent = new(); 179using Component component4 = new(); 231using Component owningComponent = new(); 236using Component component4 = new(); 334using Component owningComponent = new(); 405using Component owningComponent = new(); 484using Component owningComponent = new(); 498using Component owningComponent = new(); 512using Component owningComponent = new(); 558yield return new object[] { new Component() }; 567using Component owningComponent = new(); 580using Component owningComponent = new(); 593using Component owningComponent = new(); 604using Component owningComponent = new(); 620using Component owningComponent = new(); 649using Component owningComponent = new(); 668using Component owningComponent = new(); 747using Component owningComponent = new(); 811using Component owningComponent = new(); 841using Component owningComponent = new(); 859using Component owningComponent = new(); 876using Component component1 = new(); 878using Component component2 = new(); 886container2.Remove(new Component()); 895using Component component1 = new(); 897using Component component2 = new(); 903container2.Remove(new Component()); 913using Component owningComponent = new(); 981using Component owningComponent = new(); 1004using Component owningComponent = new();
System\Drawing\Design\ToolboxItemTests.cs (7)
411yield return new object[] { new Component(), null }; 412yield return new object[] { new Component(), mockDesigner.Object }; 479using Component component = new(); 545using Component component = new(); 625.Returns(new Component()); 798using Component component = new(); 864using Component component = new();
System\Windows\Forms\Design\DataGridViewComponentPropertyGridSiteTests.cs (4)
16using Component component = new(); 26using Component component = new(); 37using Component component = new(); 51using Component component = new();
System.Windows.Forms.Tests (17)
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (1)
167using Component component = new();
System\Windows\Forms\Design\ComponentEditorFormTests.cs (9)
16using Component component = new(); 171using Component component = new(); 192using Component component = new(); 208using Component component = new(); 236using Component component = new(); 247using Component component = new(); 285using Component component = new(); 313using Component component = new(); 340using Component component = new();
System\Windows\Forms\Design\EventsTabTests.cs (2)
72yield return new object[] { new Component { Site = mockSite.Object }, provider, null }; 118yield return new object[] { new Component(), e, null };
System\Windows\Forms\ErrorProviderTests.cs (2)
715yield return new object[] { new Component(), null }; 854yield return new object[] { new Component(), false };
System\Windows\Forms\Layout\LayoutEngineTests.cs (3)
35Assert.False(engine.Layout(new ScrollableControl(), new LayoutEventArgs(new Component(), "affectedProperty"))); 42Assert.Throws<NotSupportedException>(() => engine.Layout("container", new LayoutEventArgs(new Component(), "affectedProperty"))); 49Assert.Throws<ArgumentNullException>("container", () => engine.Layout(null, new LayoutEventArgs(new Component(), "affectedProperty")));
248 references to Component
DesignSurface (2)
MainForm.cs (2)
346Component component = surface.CreateComponent<Component>();
DesignSurfaceExt (2)
DesignSurfaceExt.cs (1)
142else if (hostType == typeof(Component))
NameCreationServiceImp.cs (1)
30if (cc[i] is Component comp && comp.GetType() == type)
netstandard (1)
netstandard.cs (1)
201[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Component))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
187[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Component))]
System.ComponentModel.Primitives (11)
System\ComponentModel\Component.cs (6)
58/// Gets or sets the site of the <see cref='System.ComponentModel.Component'/>. 69/// Disposes of the <see cref='System.ComponentModel.Component'/>. 97/// that contains the <see cref='System.ComponentModel.Component'/>. 105/// the <see cref='System.ComponentModel.Component'/>. 110/// Gets a value indicating whether the <see cref='System.ComponentModel.Component'/> 119/// <see cref='System.ComponentModel.Component'/>, if any.
System\ComponentModel\ComponentCollection.cs (2)
13/// Gets a specific <see cref='System.ComponentModel.Component'/> in the 36/// Gets a specific <see cref='System.ComponentModel.Component'/> in the
System\ComponentModel\EventHandlerList.cs (2)
12private readonly Component? _parent; 18internal EventHandlerList(Component parent)
System\ComponentModel\ISite.cs (1)
15/// Sites bind a <see cref='System.ComponentModel.Component'/> to a
System.ComponentModel.TypeConverter (2)
artifacts\obj\System.ComponentModel.TypeConverter\Debug\net10.0\System.ComponentModel.TypeConverter.Forwards.cs (1)
3[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Component))]
System\ComponentModel\MarshalByValueComponent.cs (1)
156/// Returns a <see cref='string'/> containing the name of the <see cref='System.ComponentModel.Component'/> , if any. This method should not be
System.Windows.Forms (4)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
1914if (DataSource is Component oldDataSource) 1919if (value is Component newDataSource)
System\Windows\Forms\DataBinding\BindableComponent.cs (2)
20/// Gets or sets the <see cref="BindingContext"/> for this bindable <see cref="Component"/>. 71/// Gets the <see cref="ControlBindingsCollection"/> for this bindable <see cref="Component"/>.
System.Windows.Forms.Design (47)
System\ComponentModel\Design\SelectionService.cs (1)
469_statusCommandUI.SetStatusInformation(_selection[0] as Component);
System\ComponentModel\Design\ToolStripContainerActionList.cs (2)
32private static object? GetProperty(Component component, string propertyName) 41private void ChangeProperty(Component component, string propertyName, object value)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (4)
79List<Component> parentControls = []; 134foreach (Component parent in parentControls) 258private readonly Component? _comp; 265public SelectToolStripMenuItem(Component c, IServiceProvider provider)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
796foreach (Component comp in host.Container.Components)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
583_statusCommandUITarget?.SetStatusInformation(selSvc is null ? _dragComponents[_primaryComponentIndex].dragComponent as Component : 584selSvc.PrimarySelection as Component);
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
39/// We also hook to <see cref="Component" /> Added/Removed/Changed notifications so we can keep in sync when the designers'
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
102Component? currentSelection = selectionService.PrimarySelection as Component;
System\Windows\Forms\Design\CommandSet.cs (5)
936_statusCommandUI?.SetStatusInformation(component as Component); 1990foreach (Component comp in associatedCompsOfFailedControl) 1992if (comp == obj as Component) 2017Component? parentComp = parentCompDesigner?.Component as Component;
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
53if (!manager.TryGetSerializer(typeof(Component), out CodeDomSerializer? serializer)) 152if (!manager.TryGetSerializer(typeof(Component), out CodeDomSerializer? serializer))
System\Windows\Forms\Design\DocumentDesigner.cs (2)
986Component selComp = selSvc.PrimarySelection as Component;
System\Windows\Forms\Design\ImageCollectionCodeDomSerializer.cs (1)
27if (!manager.TryGetSerializer(typeof(Component), out CodeDomSerializer? serializer))
System\Windows\Forms\Design\SplitContainerDesigner.OrientationActionList.cs (2)
18private readonly Component? _ownerComponent; 24_ownerComponent = owner.Component as Component;
System\Windows\Forms\Design\StatusCommandUI.cs (2)
38public void SetStatusInformation(Component? selectedComponent, Point location) 67public void SetStatusInformation(Component? selectedComponent)
System\Windows\Forms\Design\StyleEditorForm.cs (1)
1074host.DestroyComponent(obj as Component);
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
21public TemplateNodeCustomMenuItemCollection(IServiceProvider provider, Component currentItem) : base()
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (4)
271private static Control? GetAssociatedControl(Component component) 310private bool CheckAssociatedControl(Component component, Glyph childGlyph, GlyphCollection glyphs) 467Component component = (Component)selectedComponent;
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1772Component selComp = SelectionService.PrimarySelection as Component;
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (2)
163return GetKnownToolboxBitmap(typeof(Component)); 444foreach (Component comp in originalSelComps)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (1)
48public ToolStripItemCustomMenuItemCollection(IServiceProvider provider, Component currentItem) : base()
System\Windows\Forms\Design\ToolStripItemDesigner.cs (4)
244internal List<Component> AddParentTree() 246List<Component> parentControls = []; 253Component startComp = ToolStripItem; 507protected virtual Component GetOwnerForActionList() => (ToolStripItem.Placement == ToolStripItemPlacement.Main) ? ToolStripItem.GetCurrentParent() : ToolStripItem.Owner;
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (3)
500if (SelectionService.PrimarySelection is not Component 1092if (SelectionService.PrimarySelection is not Component primarySelection) 1120if (SelectionService.PrimarySelection is not Component primarySelection)
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializer.cs (1)
28=> manager.GetSerializer<CodeDomSerializer>(typeof(Component))!;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1403protected override Component GetOwnerForActionList()
System.Windows.Forms.Design.Tests (168)
System\ComponentModel\Design\ArrayEditorTests.cs (1)
78using Component component = new();
System\ComponentModel\Design\CollectionEditorTests.cs (12)
88using Component component = new(); 177Assert.IsType<Component>(editor.CreateInstance(typeof(Component))); 204using Component result = new(); 213.Setup(h => h.CreateComponent(typeof(Component))) 235Assert.Same(result, editor.CreateInstance(typeof(Component))); 260.Setup(h => h.CreateComponent(typeof(Component))) 286Assert.IsType<Component>(editor.CreateInstance(typeof(Component))); 302using Component result = new(); 317.Setup(h => h.CreateComponent(typeof(Component))) 339Assert.Same(result, editor.CreateInstance(typeof(Component)));
System\ComponentModel\Design\CollectionFormTests.cs (12)
476using Component component = new(); 528Assert.IsType<Component>(form.CreateInstance(typeof(Component))); 555using Component result = new(); 564.Setup(h => h.CreateComponent(typeof(Component))) 587Assert.Same(result, form.CreateInstance(typeof(Component))); 612.Setup(h => h.CreateComponent(typeof(Component))) 639Assert.IsType<Component>(form.CreateInstance(typeof(Component))); 655using Component result = new(); 670.Setup(h => h.CreateComponent(typeof(Component))) 693Assert.Same(result, form.CreateInstance(typeof(Component)));
System\ComponentModel\Design\ComponentDesignerTests.cs (46)
49using Component component = new(); 118using Component component = new() 156using Component component = new() 188using Component component = new() 236using Component component = new(); 266using Component component = new() 305public void ComponentDesigner_ParentComponent_GetWithValidService_ReturnsExpected(Component rootComponent) 314using Component component = new() 337using Component component = new(); 371using Component component = new() 389public void ComponentDesigner_ITreeDesignerParent_GetWithValidService_ReturnsExpected(Component rootComponent) 403using Component component = new() 430using Component component = new(); 459using Component component = new() 521using Component component = new() 601using Component component = new() 684using Component component = new() 831using Component rootComponent = new() 1056using Component rootComponent = new() 1164using Component rootComponent = new() 1257using Component rootComponent = new() 1348using Component rootComponent = new() 1442using Component rootComponent = new() 1549using Component rootComponent = new() 1647using Component rootComponent = new() 1726using Component rootComponent = new() 1784using Component component = new() 1843using Component component = new() 1919using Component rootComponent = new() 1972using Component component = new() 1987using Component component = new(); 2004using Component component = new(); 2020using Component component = new(); 2114using Component component = new() 2129using Component component = new(); 2171using Component component = new() 2229using Component component = new() 2245using Component component = new(); 2364using Component component = new(); 2492using Component component = new(); 2521using Component component = new(); 2550using Component component = new(); 2579using Component component = new(); 2677public void ComponentDesigner_OnSetComponentDefaults_InvokeWithInvalidComponent_Nop(Component component) 2688using Component component = new(); 2797using Component component = new();
System\ComponentModel\Design\DesignerActionListTests.cs (1)
59public void DesignerActionList_GetService_Invoke_ReturnsExpected(Component component, object expected)
System\ComponentModel\Design\DesignerActionServiceTests.cs (31)
56using Component component = new(); 77Component component = new(); 112using Component component = new(); 133using Component component = new(); 166Component component = new(); 195using Component component1 = new(); 196using Component component2 = new(); 355using Component component = new(); 376using Component component = new(); 464Component component = new() 492Component component = new() 536Component component = new() 592Component component = new() 626Component component = new(); 661using Component component = new(); 680using Component component1 = new(); 681using Component component2 = new(); 732using Component component1 = new(); 733using Component component2 = new(); 734using Component component3 = new(); 735using Component component4 = new(); 844Component component = new(); 861using Component component1 = new(); 862using Component component2 = new(); 899using Component component1 = new(); 900using Component component2 = new(); 901using Component component3 = new(); 902using Component component4 = new(); 973using Component component = new(); 991using Component component1 = new(); 992using Component component2 = new();
System\ComponentModel\Design\DesignerHostTests.cs (8)
277using Component component4 = new(); 332using Component component4 = new(); 398public void DesignerHost_Add_IExtenderProviderServiceWithoutDefault_Success(Component component, int expectedCallCount) 469public void DesignerHost_Add_IExtenderProviderServiceWithDefault_DoesNotCallGetService(Component component) 1551using Component nestedComponent = new(); 2234ComponentCollection collection = new(new Component[] { new() }); 2589public void DesignerHost_Remove_IExtenderProviderServiceWithoutDefault_Success(Component component, int expectedAddCallCount, int expectedRemoveCallCount) 2659public void DesignerHost_Remove_IExtenderProviderServiceWithDefault_Success(Component component)
System\ComponentModel\Design\DesignSurfaceTests.cs (3)
980using Component component = new(); 1132using Component ownerComponent = new(); 1143using Component ownerComponent = new();
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (2)
717Component component = new(); 806Component component = new();
System\ComponentModel\Design\SiteNestedContainerTests.cs (32)
67using Component ownerComponent = new() 174using Component owningComponent = new(); 179using Component component4 = new(); 231using Component owningComponent = new(); 236using Component component4 = new(); 302public void SiteNestedContainer_Add_IExtenderProviderServiceWithoutDefault_Success(Component component, int expectedCallCount) 334using Component owningComponent = new(); 378public void SiteNestedContainer_Add_IExtenderProviderServiceWithDefault_DoesNotCallGetService(Component component, bool throws) 405using Component owningComponent = new(); 484using Component owningComponent = new(); 498using Component owningComponent = new(); 512using Component owningComponent = new(); 567using Component owningComponent = new(); 580using Component owningComponent = new(); 593using Component owningComponent = new(); 604using Component owningComponent = new(); 620using Component owningComponent = new(); 649using Component owningComponent = new(); 668using Component owningComponent = new(); 725public void SiteNestedContainer_Remove_IExtenderProviderServiceWithoutDefault_Success(Component component, int expectedAddCallCount, int expectedRemoveCallCount) 747using Component owningComponent = new(); 790public void SiteNestedContainer_Remove_IExtenderProviderServiceWithDefault_Success(Component component) 811using Component owningComponent = new(); 841using Component owningComponent = new(); 859using Component owningComponent = new(); 876using Component component1 = new(); 878using Component component2 = new(); 895using Component component1 = new(); 897using Component component2 = new(); 913using Component owningComponent = new(); 981using Component owningComponent = new(); 1004using Component owningComponent = new();
System\Drawing\Design\ToolboxItemTests.cs (15)
368AssemblyName = typeof(Component).Assembly.GetName(true), 382Assert.IsType<Component>(Assert.Single(e.Components)); 389Assert.IsType<Component>(Assert.Single(item.CreateComponents())); 393Assert.IsType<Component>(Assert.Single(item.CreateComponents(null))); 401Assert.IsType<Component>(Assert.Single(item.CreateComponents(null))); 420public void ToolboxItem_CreateComponents_InvokeWithHostWithNonIComponentInitializerDesigner_ReturnsExpected(Component component, IDesigner designer) 479using Component component = new(); 545using Component component = new(); 703AssemblyName = typeof(Component).Assembly.GetName(true), 717Assert.IsType<Component>(Assert.Single(e.Components)); 724Assert.IsType<Component>(Assert.Single(item.CreateComponentsCore(null))); 732Assert.IsType<Component>(Assert.Single(item.CreateComponentsCore(null))); 739public void ToolboxItem_CreateComponentsCore_InvokeWithHostWithNonIComponentInitializerDesigner_ReturnsExpected(Component component, IDesigner designer) 798using Component component = new(); 864using Component component = new();
System\Windows\Forms\Design\DataGridViewComponentPropertyGridSiteTests.cs (4)
16using Component component = new(); 26using Component component = new(); 37using Component component = new(); 51using Component component = new();
ToolStripMenuItemDesignerTest.cs (1)
154internal Component GetOwnerForActionListMethod()
System.Windows.Forms.Tests (10)
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (1)
167using Component component = new();
System\Windows\Forms\Design\ComponentEditorFormTests.cs (9)
16using Component component = new(); 171using Component component = new(); 192using Component component = new(); 208using Component component = new(); 236using Component component = new(); 247using Component component = new(); 285using Component component = new(); 313using Component component = new(); 340using Component component = new();