3 implementations of Component
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ComponentDesigner.cs (1)
172public IComponent Component => _component ?? throw new InvalidOperationException("Designer is not initialized");
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\DesignerHostTests.cs (1)
3166public IComponent Component => _initializedComponent;
System\ComponentModel\Design\SiteNestedContainerTests.cs (1)
1038public IComponent Component => _initializedComponent;
16 references to Component
System.Windows.Forms.Design (14)
System\ComponentModel\Design\DesignerHost.cs (1)
271if (designer.Component is null)
System\Windows\Forms\Design\CommandSet.cs (3)
1656commonParent = parentDesigner.Component; 1734commonParent = commonDesigner?.Component; 1769IComponent component = designer.Component;
System\Windows\Forms\Design\ComponentTray.cs (8)
300PropertyDescriptor trayIconProp = TypeDescriptor.GetProperties(_mainDesigner.Component)["TrayLargeIcon"]; 301trayIconProp?.SetValue(_mainDesigner.Component, !ShowLargeIcons); 406PropertyDescriptor trayAAProp = TypeDescriptor.GetProperties(_mainDesigner.Component)["TrayAutoArrange"]; 407trayAAProp?.SetValue(_mainDesigner.Component, !AutoArrange); 482get => _mainDesigner.Component; 652&& !(selectionService.SelectionCount == 1 && selectionService.PrimarySelection == _mainDesigner.Component)) 1259ss?.SetSelectedComponents(new object[] { _mainDesigner.Component }); 1340comps = [_mainDesigner.Component];
System\Windows\Forms\Design\TabPageDesigner.cs (1)
12public override bool CanBeParentedTo(IDesigner parentDesigner) => (parentDesigner is not null && parentDesigner.Component is TabControl);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
767designer.CommitEdit(_designer.Component.GetType(), text, commit, enterKeyPressed, tabKeyPressed);
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\ControlCommandSetTests.cs (1)
107designerMock.Setup(d => d.Component).Returns(childComponent);
System\Windows\Forms\Design\TabPageDesignerTests.cs (1)
37mockDesigner.Setup(d => d.Component).Returns(mockTabControl.Object);