1 implementation of GetDesigner
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.cs (1)
1032IDesigner? IDesignerHost.GetDesigner(IComponent component)
254 references to GetDesigner
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
214|| host.GetDesigner(newComp) is not IDesigner designer)
System.ComponentModel.TypeConverter (1)
System\ComponentModel\TypeDescriptor.cs (1)
655object? designer = host.GetDesigner(component);
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1770IDesigner? designer = designerHost.GetDesigner(component);
System.Windows.Forms.Design (204)
System\ComponentModel\Design\CollectionEditor.cs (1)
100if (host.GetDesigner(instance) is IComponentInitializer initializer)
System\ComponentModel\Design\ComponentDesigner.cs (2)
202IDesigner? designer = host.GetDesigner(comp); 227return host.GetDesigner(parent);
System\ComponentModel\Design\DesignerActionPanel.cs (1)
622if (host?.GetDesigner(relatedComponent) is ComponentDesigner componentDesigner)
System\ComponentModel\Design\DesignerHost.cs (1)
1100IRootDesigner rootDesigner = (((IDesignerHost)this).GetDesigner(_rootComponent!) as IRootDesigner)
System\ComponentModel\Design\DesignSurface.cs (1)
156if (((IDesignerHost)_host).GetDesigner(rootComponent) is not IRootDesigner rootDesigner)
System\ComponentModel\Design\MenuCommandService.cs (1)
205IDesigner? designer = designerHost.GetDesigner(selectedComponent);
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
49ToolStripPanelDesigner? panelDesigner = _designerHost.GetDesigner(component) as ToolStripPanelDesigner;
System\ComponentModel\Design\TypeDescriptorFilterService.cs (1)
29return host.GetDesigner(component);
System\Drawing\Design\ToolboxItem.cs (1)
286if (host.GetDesigner(components[i]) is IComponentInitializer init)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
108if (host.GetDesigner(selectedItem) is ToolStripItemDesigner itemDesigner)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
803if (host.GetDesigner(comp) is ControlDesigner designer)
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (1)
228if (host.GetDesigner(ctrl) is ControlDesigner des && (des.SelectionRules & SelectionRules.Moveable) != 0)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (3)
489if (host.GetDesigner(c) is ControlDesigner controlDesigner) 558if (host.GetDesigner(targetControl) is not ControlDesigner controlDesigner) 593if (host.GetDesigner(comp) is ControlDesigner designer)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
657if (newDestHost.GetDesigner(target) is ControlDesigner designer && !designer.ParticipatesWithSnapLines)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
218if (designerHost.GetDesigner(_resizeComponents[i].resizeControl) is ControlDesigner designer)
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
248IDesigner? designer = _designerHost.GetDesigner(component);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
275host.GetDesigner(_relatedControl) is ToolStripPanelDesigner toolStripPanelDesigner
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
42if (_host.GetDesigner(root) is ParentControlDesigner rootDesigner)
System\Windows\Forms\Design\CommandSet.cs (18)
461if (host.GetDesigner(comp) is ControlDesigner des && (des.SelectionRules & selectionRules) == selectionRules) 517if (host.GetDesigner(component) is not ComponentDesigner designer) 719IDesigner? designer = host.GetDesigner(pri); 860if (host.GetDesigner(primaryControl.Parent!) is ParentControlDesigner parentDesigner) 917if (host.GetDesigner(component) is ControlDesigner des && ((des.SelectionRules & rules) != rules)) 1001if (host?.GetDesigner(comp) is not ControlDesigner) 1171if (host is not null && host.GetDesigner(comp) is not ControlDesigner) 1497&& host.GetDesigner(parent) is ParentControlDesigner designer 1621if (host.GetDesigner(parent) is ParentControlDesigner designer 1657if (host.GetDesigner((IComponent)obj) is ITreeDesigner designer) 1697if (host.GetDesigner(c) is ITreeDesigner designer && host.GetDesigner(commonParent) is ITreeDesigner commonParentDesigner && designer.Parent != commonParentDesigner) 1770if (host.GetDesigner(commonParent) is ITreeDesigner { Children: not null } commonParentDesigner) 1918ITreeDesigner? tree = host.GetDesigner(selectedComponent) as ITreeDesigner; 2008if (host.GetDesigner(curComp) is not ComponentDesigner cDesigner) 2033if (host.GetDesigner(parentComp) is ParentControlDesigner parentDesigner && !designerList.Contains(parentDesigner)) 2108IDesigner? des = host.GetDesigner(c); 3081&& host.GetDesigner(primarySelection) is ParentControlDesigner)
System\Windows\Forms\Design\ComponentTray.cs (4)
281if (selObj is IComponent selectedComponent && !(host.GetDesigner(selectedComponent) is ControlDesigner)) 1079IDesigner designer = host.GetDesigner(host.RootComponent); 1698if (host.GetDesigner(host.RootComponent) is IRootDesigner rd) 2099IDesigner designer = host.GetDesigner(_component);
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (1)
197ControlDesigner? controlDesigner = host?.GetDesigner(control) as ControlDesigner;
System\Windows\Forms\Design\ControlCommandSet.cs (6)
526ControlDesigner des = host.GetDesigner(comp) as ControlDesigner; 694ParentControlDesigner parentDesigner = host.GetDesigner(primaryControl.Parent) as ParentControlDesigner; 755des = host.GetDesigner(component) as ControlDesigner; 1201ComponentDesigner baseDesigner = host.GetDesigner(_baseControl) as ComponentDesigner; 1479ControlDesigner controlDesigner = host.GetDesigner(selection) as ControlDesigner; 1489controlDesigner = host.GetDesigner(selection) as ControlDesigner;
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
88if (DesignerHost.GetDesigner(owner) is ControlDesigner ctlDesigner)
System\Windows\Forms\Design\ControlDesigner.cs (8)
495if (e.Control is null || _host is null || _host.GetDesigner(e.Control) is ControlDesigner) 864if (child is null || _host is null || _host.GetDesigner(child) is ControlDesigner) 1151if (host.GetDesigner(parent) is ParentControlDesigner parentDesigner) 1427if (_host?.GetDesigner(comp) is ControlDesigner des && (des.SelectionRules & SelectionRules.Moveable) != 0) 1462object? designer = _host?.GetDesigner(parent); 1491object? designer = _host?.GetDesigner(parent); 1520object? designer = _host?.GetDesigner(parent); 2172if (_host is not null && _host.RootComponent is not null && _host.GetDesigner(_host.RootComponent) is IRootDesigner rd)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
489BindingSourceDesigner? designer = _designerHost.GetDesigner(instance) as BindingSourceDesigner;
System\Windows\Forms\Design\DesignerUtils.cs (1)
804if (host?.GetDesigner(component) is not ComponentDesigner designer)
System\Windows\Forms\Design\DocumentDesigner.cs (3)
631ParentControlDesigner designer = host.GetDesigner(c) as ParentControlDesigner; 891IDesigner designer = host.GetDesigner(component); 992ComponentDesigner compDesigner = host.GetDesigner(selComp) as ComponentDesigner;
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
95if (defaultValues["Parent"] is Control parentControl && host.GetDesigner(parentControl) is ParentControlDesigner parentControlDesigner)
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
119if (host.GetDesigner(component) is not ComponentDesigner designer)
System\Windows\Forms\Design\ParentControlDesigner.cs (13)
194ParentControlDesigner designer = host.GetDesigner(child) as ParentControlDesigner; 272ParentControlDesigner designer = host.GetDesigner(child) as ParentControlDesigner; 410ParentControlDesigner designer = host.GetDesigner(child) as ParentControlDesigner; 456&& host.GetDesigner(newChild) as ControlDesigner is not null && !(newChild is Form form && form.TopLevel)) 662IComponentInitializer init = host.GetDesigner(component) as IComponentInitializer; 899ControlDesigner cd = host.GetDesigner(comp) as ControlDesigner; 1079return (host.GetDesigner(parent) as ParentControlDesigner); 1253if (host.GetDesigner(parent) is not ParentControlDesigner parentDesigner) 1494DocumentDesigner parentDesigner = host.GetDesigner(host.RootComponent) as DocumentDesigner; 1534object draggedDesigner = host.GetDesigner(comp); 1677if (host?.GetDesigner(host.RootComponent) is DocumentDesigner parentDesigner) 2445IComponentInitializer init = localDesignerHost.GetDesigner(component) as IComponentInitializer; 2477IDesigner designer = host.GetDesigner(component);
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
83if (selUIsvc._host.GetDesigner(comp) is ControlDesigner cd)
System\Windows\Forms\Design\SplitContainerDesigner.cs (6)
105return _designerHost?.GetDesigner(panel) as ControlDesigner; 119if (_designerHost!.GetDesigner(_selectedPanel) is SplitterPanelDesigner panelDesigner1) 130if (_designerHost!.GetDesigner(value) is SplitterPanelDesigner panelDesigner) 164var selectedPanelDesigner = (SplitterPanelDesigner)_designerHost!.GetDesigner(Selected)!; 201var panelDesigner = _designerHost?.GetDesigner(_splitterPanel1!) as SplitterPanelDesigner; 212panelDesigner = _designerHost?.GetDesigner(_splitterPanel2!) as SplitterPanelDesigner;
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
111_splitContainerDesigner = (SplitContainerDesigner?)_designerHost?.GetDesigner(_splitterPanel.Parent!);
System\Windows\Forms\Design\StandardMenuStripVerb.cs (4)
138IDesigner designer = _host.GetDesigner(item); 150IDesigner designer = _host.GetDesigner(item); 309IDesigner designer = _host.GetDesigner(item); 319IDesigner designer = _host.GetDesigner(item);
System\Windows\Forms\Design\StyleEditorForm.cs (1)
105_tableLayoutPanelDesigner = host.GetDesigner(_tableLayoutPanel) as TableLayoutPanelDesigner;
System\Windows\Forms\Design\TabControlDesigner.cs (2)
134TabPageDesigner selectedTabPageDesigner = host.GetDesigner(tc.SelectedTab) as TabPageDesigner; 491pageDesigner = host.GetDesigner(selectedTab) as TabPageDesigner;
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (2)
76IDesigner designer = designerHost.GetDesigner(component); 140if (designerHost.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner)
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (4)
140return _designerHost.GetDesigner(panel) as ControlDesigner; 199private ToolStripPanelDesigner? GetDesigner(ToolStripPanel panel) => _designerHost.GetDesigner(panel) as ToolStripPanelDesigner; 201private PanelDesigner? GetDesigner(ToolStripContentPanel panel) => _designerHost.GetDesigner(panel) as PanelDesigner; 394ToolStripPanelDesigner? panelDesigner = _designerHost?.GetDesigner(_topToolStripPanel) as ToolStripPanelDesigner;
System\Windows\Forms\Design\ToolStripDesigner.cs (17)
489ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 524designer = _host.GetDesigner(component) as ToolStripItemDesigner; 575ToolStripItemDesigner designer = _host.GetDesigner(component) as ToolStripItemDesigner; 828if (_host.GetDesigner(selectedItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive) 844if (_host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive) 856ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(toolItem); 1243IDesigner itemDesigner = _host.GetDesigner(selectedItem); 1282ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(toolItem); 1305ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 1359ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 1478parentFormDesigner = _host.GetDesigner(parentForm) as FormDocumentDesigner; 1911if (_host.GetDesigner(primaryDropDownItem) is ToolStripMenuItemDesigner dropDownItemDesigner) 2054&& _host.GetDesigner(item) is ToolStripItemDesigner designer) 2137if (_host.GetDesigner(selectedItem) is ToolStripMenuItemDesigner selectedItemDesigner) 2238ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 2432if (_host.GetDesigner(newItem) is ToolStripItemDesigner newItemDesigner) 2470ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item);
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (2)
453designer = designerHost.GetDesigner(selItem) as ToolStripItemDesigner; 491designer = designerHost.GetDesigner(nextSelection) as ToolStripItemDesigner;
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (7)
148ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(_menuItem); 207ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 336if (_host.GetDesigner(_menuItem) is ToolStripMenuItemDesigner itemDesigner) 445ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(comp); 469ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(ownerItem); 658if (_host.GetDesigner(_currentParent) is ToolStripMenuItemDesigner ownerItemDesigner) 680ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(_menuItem);
System\Windows\Forms\Design\ToolStripEditorManager.cs (1)
77_itemDesigner = (ToolStripItemDesigner)_designerHost.GetDesigner(_currentItem);
System\Windows\Forms\Design\ToolStripInSituService.cs (6)
107_toolItemDesigner = host.GetDesigner(parentItem) as ToolStripMenuItemDesigner; 120_toolDesigner = host.GetDesigner(tool) as ToolStripDesigner; 131if (host.GetDesigner(comp) is ToolStripDropDownDesigner designer) 136_toolItemDesigner = host.GetDesigner(toolItem) as ToolStripItemDesigner; 147_toolDesigner = host.GetDesigner(comp) as ToolStripDesigner; 156_toolItemDesigner = host.GetDesigner(comp) as ToolStripItemDesigner;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (9)
156if (designerHost.GetDesigner(item) is ToolStripItemDesigner itemDesigner) 553if (designerHost.GetDesigner(parentToolStrip) is ToolStripDesigner parentDesigner) 564if (designerHost.GetDesigner(ownerItem) is ToolStripItemDesigner ownerItemDesigner) 606if (designerHost.GetDesigner(ddItem) is ToolStripMenuItemDesigner itemDesigner) 795if (designerHost.GetDesigner(item) is ToolStripMenuItemDesigner itemDesigner) 805if (designerHost.GetDesigner(ownerItem) is ToolStripMenuItemDesigner ownerDesigner) 981ToolStripItemDesigner itemDesigner = designerHost.GetDesigner(glyphItem) as ToolStripItemDesigner; 983if (designerHost.GetDesigner(parentToolStrip) is ToolStripDesigner parentDesigner) 1006if (designerHost.GetDesigner(ownerItem) is ToolStripItemDesigner ownerItemDesigner)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (8)
210if (_designerHost.GetDesigner(_currentItem) is ToolStripItemDesigner itemDesigner) 236if (_designerHost.GetDesigner(_currentItem) is ToolStripItemDesigner itemDesigner) 305ToolStripItemDesigner _designer = (ToolStripItemDesigner)_designerHost.GetDesigner(_currentItem); 391IDesigner designer = designerHost.GetDesigner(component); 409if (designerHost.GetDesigner(parent.OwnerItem.Owner) is ToolStripDesigner toolStripDesigner) 442IDesigner designer = designerHost.GetDesigner(component); 481IDesigner designer = designerHost.GetDesigner(component); 521IDesigner designer = designerHost.GetDesigner(component);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (6)
334ToolStripDesigner designer = (ToolStripDesigner)designerHost.GetDesigner(ToolStripItem.Owner); 431ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)designerHost.GetDesigner(newItem); 745ownerItemDesigner = (ToolStripMenuItemDesigner)host.GetDesigner(ownerItem); 993ToolStripMenuItemDesigner parentItemDesigner = (ToolStripMenuItemDesigner)designerHost.GetDesigner(parentItem); 1001ToolStripDropDownDesigner parentDropDownDesigner = (ToolStripDropDownDesigner)designerHost.GetDesigner(parentDropDown); 1221ToolStripDesigner parentDesigner = (ToolStripDesigner)designerHost.GetDesigner(parent);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (17)
532if (Host.GetDesigner(parentItem.DropDown) is ToolStripDropDownDesigner dropDownDesigner) 536else if (!parentItem.DropDown.Visible && Host.GetDesigner(parentItem) is ToolStripMenuItemDesigner designer) 627if (host.GetDesigner(item) is ToolStripItemDesigner) 632if (host.GetDesigner(dropDown) is ToolStripDropDownDesigner dropDownDesigner) 644if (host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner) 656if (host.GetDesigner(dropDownItem) is ToolStripMenuItemDesigner selectedItemDesigner) 851if (host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner) 865if (host.GetDesigner(typeHereNode.Owner) is ToolStripDesigner tooldesigner) 881IDesigner designer = host.GetDesigner(pri); 931if (host.GetDesigner(comp) is ToolStripMenuItemDesigner designer) 946if (host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner) 956if (host.GetDesigner(typeHereNode.Owner) is ToolStripDesigner tooldesigner) 1261&& host.GetDesigner(dropDownItem) is ToolStripMenuItemDesigner designer) 1801ControlDesigner controlDesigner = host.GetDesigner((IComponent)targetSelection) as ControlDesigner; 1810controlDesigner = targetSelection is not null ? host.GetDesigner((IComponent)targetSelection) as ControlDesigner : null; 1898ControlDesigner controlDesigner = host.GetDesigner((IComponent)targetSelection) as ControlDesigner; 1907controlDesigner = targetSelection is not null ? host.GetDesigner((IComponent)targetSelection) as ControlDesigner : null;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (26)
282if (_designerHost.GetDesigner(toolItem) is ToolStripItemDesigner designer) 389ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)_designerHost.GetDesigner(item); 409ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_designerHost.GetDesigner(item); 457if (_designerHost.GetDesigner(editedItem) is ToolStripItemDesigner itemDesigner) 801ToolStripItemDesigner designer = _designerHost.GetDesigner(newItem) as ToolStripItemDesigner; 873ToolStripItemDesigner designer = _designerHost.GetDesigner(newItem) as ToolStripItemDesigner; 971ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_designerHost.GetDesigner(currentItem); 1072if (_designerHost.GetDesigner(item) is ToolStripItemDesigner designer) 1131if (_designerHost.GetDesigner(_designerHost.RootComponent) is ControlDesigner designer) 1199if (_designerHost.GetDesigner(_designerHost.RootComponent) is ControlDesigner designer) 1307if (_designerHost.GetDesigner(newDummyItem) is ToolStripMenuItemDesigner newItemDesigner) 1327IDesigner designer = _designerHost.GetDesigner(ownerItem); 1578if (_designerHost.GetDesigner(currentOwner) is ToolStripMenuItemDesigner ownerdesigner) 1589if (_designerHost.GetDesigner(MenuItem.DropDown) is ToolStripDropDownDesigner designer) 1805if (_designerHost.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && mainStripDesigner.InsertTransaction is not null) 1853if (_designerHost.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && !mainStripDesigner.EditingCollection && mainStripDesigner.InsertTransaction is null) 2063if (_designerHost.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && mainStripDesigner.CacheItems) 2112if (_designerHost.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner) 2163if (_designerHost.GetDesigner(firstDropDown) is ToolStripDropDownDesigner firstDropDownDesigner) 2378ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)_designerHost.GetDesigner(ddItem); 2399ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_designerHost.GetDesigner(item); 2503IDesigner designer = _designerHost.GetDesigner(_parentItem); 2564if (_designerHost.GetDesigner(currentSelection) is ToolStripMenuItemDesigner currentSelectionDesigner) 2572ToolStripDropDownDesigner dropDownDesigner = (ToolStripDropDownDesigner)_designerHost.GetDesigner(currentDropDown); 2764if (host.GetDesigner(dropDownItem) is ToolStripMenuItemDesigner dropDownItemDesigner) 2789if (host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner ownerDesigner)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
177&& _designerHost?.GetDesigner(contentPanel) is PanelDesigner designer)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
124_designer = _designerHost.GetDesigner(component); 406ToolStripDesigner designer = _designerHost.GetDesigner(_component) as ToolStripDesigner; 567if (_designerHost.GetDesigner(selectedItem) is ToolStripMenuItemDesigner menuItemDesigner) 834if (_designerHost.GetDesigner(curSel) is ToolStripItemDesigner designer)
System.Windows.Forms.Design.Tests (47)
ControlDesignerTests.cs (2)
336_designer._mockDesignerHost.Setup(h => h.GetDesigner(It.IsAny<IComponent>())).Returns(mockParentDesigner.Object); 357_designer._mockDesignerHost.Setup(h => h.GetDesigner(It.IsAny<IComponent>())).Returns(mockParentDesigner.Object);
SplitContainerDesignerTests.cs (1)
20.Setup(s => s.GetDesigner(It.IsAny<Control>()))
System\ComponentModel\Design\CollectionEditorTests.cs (3)
216.Setup(h => h.GetDesigner(result)) 263.Setup(h => h.GetDesigner(null)) 320.Setup(h => h.GetDesigner(result))
System\ComponentModel\Design\CollectionFormTests.cs (3)
567.Setup(h => h.GetDesigner(result)) 615.Setup(h => h.GetDesigner(null)) 673.Setup(h => h.GetDesigner(result))
System\ComponentModel\Design\ComponentDesignerTests.cs (16)
110.Setup(h => h.GetDesigner(mockComponent1.Object)) 114.Setup(h => h.GetDesigner(mockComponent2.Object)) 125mockDesignerHost.Verify(h => h.GetDesigner(mockComponent1.Object), Times.Once()); 126mockDesignerHost.Verify(h => h.GetDesigner(mockComponent2.Object), Times.Once()); 130mockDesignerHost.Verify(h => h.GetDesigner(mockComponent1.Object), Times.Exactly(2)); 131mockDesignerHost.Verify(h => h.GetDesigner(mockComponent2.Object), Times.Exactly(2)); 148.Setup(h => h.GetDesigner(mockComponent1.Object)) 152.Setup(h => h.GetDesigner(mockComponent2.Object)) 163mockDesignerHost.Verify(h => h.GetDesigner(mockComponent1.Object), Times.Once()); 164mockDesignerHost.Verify(h => h.GetDesigner(mockComponent2.Object), Times.Once()); 168mockDesignerHost.Verify(h => h.GetDesigner(mockComponent1.Object), Times.Exactly(2)); 169mockDesignerHost.Verify(h => h.GetDesigner(mockComponent2.Object), Times.Exactly(2)); 398.Setup(h => h.GetDesigner(rootComponent)) 411mockDesignerHost.Verify(h => h.GetDesigner(rootComponent), Times.Never()); 416mockDesignerHost.Verify(h => h.GetDesigner(rootComponent), Times.Exactly(rootComponent is null ? 0 : 1)); 422mockDesignerHost.Verify(h => h.GetDesigner(rootComponent), Times.Exactly(rootComponent is null ? 0 : 2));
System\ComponentModel\Design\DesignerHostTests.cs (12)
2254Assert.IsType<RootDesigner>(host.GetDesigner(component)); 2255Assert.Null(host.GetDesigner(new Component())); 2256Assert.Null(host.GetDesigner(new RootDesignerComponent())); 2264Assert.Null(host.GetDesigner(new Component())); 2265Assert.Null(host.GetDesigner(new RootDesignerComponent())); 2273Assert.Throws<ArgumentNullException>("component", () => host.GetDesigner(null)); 2537Assert.Null(host.GetDesigner(rootComponent)); 2538Assert.NotNull(host.GetDesigner(component)); 2549Assert.Null(host.GetDesigner(rootComponent)); 2550Assert.NotNull(host.GetDesigner(component)); 2561Assert.Null(host.GetDesigner(rootComponent)); 2562Assert.Null(host.GetDesigner(component));
System\Drawing\Design\ToolboxItemTests.cs (6)
434.Setup(h => h.GetDesigner(component)) 500.Setup(h => h.GetDesigner(component)) 568.Setup(h => h.GetDesigner(component)) 753.Setup(h => h.GetDesigner(component)) 819.Setup(h => h.GetDesigner(component)) 887.Setup(h => h.GetDesigner(component))
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (1)
24mockDesignerHost.Setup(dh => dh.GetDesigner(splitterPanel.Parent!)).Returns(splitContainerDesigner);
TestControlDesigner.Mocks.cs (1)
24.Setup(s => s.GetDesigner(It.IsAny<Control>()))
ToolStripMenuItemDesignerTest.cs (2)
104.Setup(s => s.GetDesigner(It.IsAny<Control>())) 133.Setup(s => s.GetDesigner(It.IsAny<Control>()))