1 implementation of GetDesigner
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.cs (1)
1022IDesigner? IDesignerHost.GetDesigner(IComponent component)
264 references to GetDesigner
DemoConsole (1)
DesignSurfaceExtended.cs (1)
207|| host.GetDesigner(newComp) is not IDesigner designer)
System.ComponentModel.TypeConverter (1)
System\ComponentModel\TypeDescriptor.cs (1)
664object? designer = host.GetDesigner(component);
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1766IDesigner? designer = designerHost.GetDesigner(component);
System.Windows.Forms.Design (205)
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)
619if (host?.GetDesigner(relatedComponent) is ComponentDesigner componentDesigner)
System\ComponentModel\Design\DesignerHost.cs (1)
1090IRootDesigner 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)
202IDesigner? 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)
800if (host.GetDesigner(comp) is ControlDesigner designer)
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (1)
229if (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)
651if (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)
245IDesigner? 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)
455if (host.GetDesigner(comp) is ControlDesigner des && (des.SelectionRules & selectionRules) == selectionRules) 511if (host.GetDesigner(component) is not ComponentDesigner designer) 713IDesigner? designer = host.GetDesigner(pri); 854if (host.GetDesigner(primaryControl.Parent!) is ParentControlDesigner parentDesigner) 911if (host.GetDesigner(component) is ControlDesigner des && ((des.SelectionRules & rules) != rules)) 995if (host?.GetDesigner(comp) is not ControlDesigner) 1165if (host is not null && host.GetDesigner(comp) is not ControlDesigner) 1491&& host.GetDesigner(parent) is ParentControlDesigner designer 1615if (host.GetDesigner(parent) is ParentControlDesigner designer 1651if (host.GetDesigner((IComponent)obj) is ITreeDesigner designer) 1691if (host.GetDesigner(c) is ITreeDesigner designer && host.GetDesigner(commonParent) is ITreeDesigner commonParentDesigner && designer.Parent != commonParentDesigner) 1764if (host.GetDesigner(commonParent) is ITreeDesigner { Children: not null } commonParentDesigner) 1912ITreeDesigner? tree = host.GetDesigner(selectedComponent) as ITreeDesigner; 2002if (host.GetDesigner(curComp) is not ComponentDesigner cDesigner) 2027if (host.GetDesigner(parentComp) is ParentControlDesigner parentDesigner && !designerList.Contains(parentDesigner)) 2102IDesigner? des = host.GetDesigner(c); 3075&& host.GetDesigner(primarySelection) is ParentControlDesigner)
System\Windows\Forms\Design\ComponentTray.cs (4)
275if (selObj is IComponent selectedComponent && !(host.GetDesigner(selectedComponent) is ControlDesigner)) 1064IDesigner designer = host.GetDesigner(host.RootComponent); 1683if (host.GetDesigner(host.RootComponent) is IRootDesigner rd) 2081IDesigner 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)
523ControlDesigner des = host.GetDesigner(comp) as ControlDesigner; 691ParentControlDesigner parentDesigner = host.GetDesigner(primaryControl.Parent) as ParentControlDesigner; 752des = host.GetDesigner(component) as ControlDesigner; 1195ComponentDesigner baseDesigner = host.GetDesigner(_baseControl) as ComponentDesigner; 1473ControlDesigner controlDesigner = host.GetDesigner(selection) as ControlDesigner; 1483controlDesigner = 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) 879if (child is null || _host is null || _host.GetDesigner(child) is ControlDesigner) 1166if (host.GetDesigner(parent) is ParentControlDesigner parentDesigner) 1442if (_host?.GetDesigner(comp) is ControlDesigner des && (des.SelectionRules & SelectionRules.Moveable) != 0) 1477object? designer = _host?.GetDesigner(parent); 1506object? designer = _host?.GetDesigner(parent); 1535object? designer = _host?.GetDesigner(parent); 2187if (_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)
589ParentControlDesigner designer = host.GetDesigner(c) as ParentControlDesigner; 849IDesigner designer = host.GetDesigner(component); 950ComponentDesigner compDesigner = host.GetDesigner(selComp) as ComponentDesigner;
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
91if (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) 2439IComponentInitializer init = localDesignerHost.GetDesigner(component) as IComponentInitializer; 2471IDesigner 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)
137IDesigner designer = _host.GetDesigner(item); 149IDesigner designer = _host.GetDesigner(item); 301IDesigner designer = _host.GetDesigner(item); 311IDesigner 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)
129TabPageDesigner selectedTabPageDesigner = host.GetDesigner(tc.SelectedTab) as TabPageDesigner; 474pageDesigner = host.GetDesigner(selectedTab) as TabPageDesigner;
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (2)
76IDesigner designer = designerHost.GetDesigner(component); 137if (designerHost.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner)
System\Windows\Forms\Design\ToolStripCollectionEditor.cs (1)
59designer = host.GetDesigner((IComponent)primarySelection) as ToolStripDesigner;
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)
456ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 491designer = _host.GetDesigner(component) as ToolStripItemDesigner; 536ToolStripItemDesigner designer = _host.GetDesigner(component) as ToolStripItemDesigner; 783if (_host.GetDesigner(selectedItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive) 799if (_host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive) 811ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(toolItem); 1226IDesigner itemDesigner = _host.GetDesigner(selectedItem); 1265ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(toolItem); 1288ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 1342ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 1486parentFormDesigner = _host.GetDesigner(parentForm) as FormDocumentDesigner; 1927if (_host.GetDesigner(primaryDropDownItem) is ToolStripMenuItemDesigner dropDownItemDesigner) 2070&& _host.GetDesigner(item) is ToolStripItemDesigner designer) 2153if (_host.GetDesigner(selectedItem) is ToolStripMenuItemDesigner selectedItemDesigner) 2254ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 2431if (_host.GetDesigner(newItem) is ToolStripItemDesigner newItemDesigner) 2469ToolStripItemDesigner 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); 327if (_host.GetDesigner(_menuItem) is ToolStripMenuItemDesigner itemDesigner) 436ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(comp); 460ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(ownerItem); 649if (_host.GetDesigner(_currentParent) is ToolStripMenuItemDesigner ownerItemDesigner) 671ToolStripMenuItemDesigner 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)
95_toolItemDesigner = host.GetDesigner(parentItem) as ToolStripMenuItemDesigner; 108_toolDesigner = host.GetDesigner(tool) as ToolStripDesigner; 119if (host.GetDesigner(comp) is ToolStripDropDownDesigner designer) 124_toolItemDesigner = host.GetDesigner(toolItem) as ToolStripItemDesigner; 135_toolDesigner = host.GetDesigner(comp) as ToolStripDesigner; 144_toolItemDesigner = host.GetDesigner(comp) as ToolStripItemDesigner;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (9)
156if (designerHost.GetDesigner(item) is ToolStripItemDesigner itemDesigner) 550if (designerHost.GetDesigner(parentToolStrip) is ToolStripDesigner parentDesigner) 561if (designerHost.GetDesigner(ownerItem) is ToolStripItemDesigner ownerItemDesigner) 603if (designerHost.GetDesigner(ddItem) is ToolStripMenuItemDesigner itemDesigner) 786if (designerHost.GetDesigner(item) is ToolStripMenuItemDesigner itemDesigner) 796if (designerHost.GetDesigner(ownerItem) is ToolStripMenuItemDesigner ownerDesigner) 969ToolStripItemDesigner itemDesigner = designerHost.GetDesigner(glyphItem) as ToolStripItemDesigner; 971if (designerHost.GetDesigner(parentToolStrip) is ToolStripDesigner parentDesigner) 994if (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); 422ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)designerHost.GetDesigner(newItem); 724ownerItemDesigner = (ToolStripMenuItemDesigner)host.GetDesigner(ownerItem); 969ToolStripMenuItemDesigner parentItemDesigner = (ToolStripMenuItemDesigner)designerHost.GetDesigner(parentItem); 977ToolStripDropDownDesigner parentDropDownDesigner = (ToolStripDropDownDesigner)designerHost.GetDesigner(parentDropDown); 1197ToolStripDesigner parentDesigner = (ToolStripDesigner)designerHost.GetDesigner(parent);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (17)
529if (Host.GetDesigner(parentItem.DropDown) is ToolStripDropDownDesigner dropDownDesigner) 533else if (!parentItem.DropDown.Visible && Host.GetDesigner(parentItem) is ToolStripMenuItemDesigner designer) 624if (host.GetDesigner(item) is ToolStripItemDesigner) 629if (host.GetDesigner(dropDown) is ToolStripDropDownDesigner dropDownDesigner) 641if (host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner) 653if (host.GetDesigner(dropDownItem) is ToolStripMenuItemDesigner selectedItemDesigner) 848if (host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner) 859if (host.GetDesigner(typeHereNode.Owner) is ToolStripDesigner tooldesigner) 872IDesigner designer = host.GetDesigner(pri); 919if (host.GetDesigner(comp) is ToolStripMenuItemDesigner designer) 934if (host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner) 944if (host.GetDesigner(typeHereNode.Owner) is ToolStripDesigner tooldesigner) 1249&& host.GetDesigner(dropDownItem) is ToolStripMenuItemDesigner designer) 1780ControlDesigner controlDesigner = host.GetDesigner((IComponent)targetSelection) as ControlDesigner; 1789controlDesigner = targetSelection is not null ? host.GetDesigner((IComponent)targetSelection) as ControlDesigner : null; 1877ControlDesigner controlDesigner = host.GetDesigner((IComponent)targetSelection) as ControlDesigner; 1886controlDesigner = 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) 786ToolStripItemDesigner designer = _designerHost.GetDesigner(newItem) as ToolStripItemDesigner; 855ToolStripItemDesigner designer = _designerHost.GetDesigner(newItem) as ToolStripItemDesigner; 950ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_designerHost.GetDesigner(currentItem); 1042if (_designerHost.GetDesigner(item) is ToolStripItemDesigner designer) 1101if (_designerHost.GetDesigner(_designerHost.RootComponent) is ControlDesigner designer) 1169if (_designerHost.GetDesigner(_designerHost.RootComponent) is ControlDesigner designer) 1274if (_designerHost.GetDesigner(newDummyItem) is ToolStripMenuItemDesigner newItemDesigner) 1294IDesigner designer = _designerHost.GetDesigner(ownerItem); 1545if (_designerHost.GetDesigner(currentOwner) is ToolStripMenuItemDesigner ownerdesigner) 1556if (_designerHost.GetDesigner(MenuItem.DropDown) is ToolStripDropDownDesigner designer) 1772if (_designerHost.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && mainStripDesigner.InsertTransaction is not null) 1820if (_designerHost.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && !mainStripDesigner.EditingCollection && mainStripDesigner.InsertTransaction is null) 2021if (_designerHost.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && mainStripDesigner.CacheItems) 2070if (_designerHost.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner) 2121if (_designerHost.GetDesigner(firstDropDown) is ToolStripDropDownDesigner firstDropDownDesigner) 2327ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)_designerHost.GetDesigner(ddItem); 2348ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_designerHost.GetDesigner(item); 2452IDesigner designer = _designerHost.GetDesigner(_parentItem); 2513if (_designerHost.GetDesigner(currentSelection) is ToolStripMenuItemDesigner currentSelectionDesigner) 2521ToolStripDropDownDesigner dropDownDesigner = (ToolStripDropDownDesigner)_designerHost.GetDesigner(currentDropDown); 2707if (host.GetDesigner(dropDownItem) is ToolStripMenuItemDesigner dropDownItemDesigner) 2732if (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); 391ToolStripDesigner designer = _designerHost.GetDesigner(_component) as ToolStripDesigner; 534if (_designerHost.GetDesigner(selectedItem) is ToolStripMenuItemDesigner menuItemDesigner) 795if (_designerHost.GetDesigner(curSel) is ToolStripItemDesigner designer)
System.Windows.Forms.Design.Tests (56)
ControlDesignerTests.cs (2)
334_designer._mockDesignerHost.Setup(h => h.GetDesigner(It.IsAny<IComponent>())).Returns(mockParentDesigner.Object); 355_designer._mockDesignerHost.Setup(h => h.GetDesigner(It.IsAny<IComponent>())).Returns(mockParentDesigner.Object);
SplitContainerDesignerTests.cs (1)
22.Setup(s => s.GetDesigner(It.IsAny<Control>()))
System\ComponentModel\Design\CollectionEditorTests.cs (3)
198.Setup(h => h.GetDesigner(result)) 245.Setup(h => h.GetDesigner(null)) 302.Setup(h => h.GetDesigner(result))
System\ComponentModel\Design\CollectionFormTests.cs (3)
569.Setup(h => h.GetDesigner(result)) 617.Setup(h => h.GetDesigner(null)) 675.Setup(h => h.GetDesigner(result))
System\ComponentModel\Design\ComponentDesignerTests.cs (16)
112.Setup(h => h.GetDesigner(mockComponent1.Object)) 116.Setup(h => h.GetDesigner(mockComponent2.Object)) 127mockDesignerHost.Verify(h => h.GetDesigner(mockComponent1.Object), Times.Once()); 128mockDesignerHost.Verify(h => h.GetDesigner(mockComponent2.Object), Times.Once()); 132mockDesignerHost.Verify(h => h.GetDesigner(mockComponent1.Object), Times.Exactly(2)); 133mockDesignerHost.Verify(h => h.GetDesigner(mockComponent2.Object), Times.Exactly(2)); 150.Setup(h => h.GetDesigner(mockComponent1.Object)) 154.Setup(h => h.GetDesigner(mockComponent2.Object)) 165mockDesignerHost.Verify(h => h.GetDesigner(mockComponent1.Object), Times.Once()); 166mockDesignerHost.Verify(h => h.GetDesigner(mockComponent2.Object), Times.Once()); 170mockDesignerHost.Verify(h => h.GetDesigner(mockComponent1.Object), Times.Exactly(2)); 171mockDesignerHost.Verify(h => h.GetDesigner(mockComponent2.Object), Times.Exactly(2)); 400.Setup(h => h.GetDesigner(rootComponent)) 413mockDesignerHost.Verify(h => h.GetDesigner(rootComponent), Times.Never()); 418mockDesignerHost.Verify(h => h.GetDesigner(rootComponent), Times.Exactly(rootComponent is null ? 0 : 1)); 424mockDesignerHost.Verify(h => h.GetDesigner(rootComponent), Times.Exactly(rootComponent is null ? 0 : 2));
System\ComponentModel\Design\DesignerHostTests.cs (12)
2256Assert.IsType<RootDesigner>(host.GetDesigner(component)); 2257Assert.Null(host.GetDesigner(new Component())); 2258Assert.Null(host.GetDesigner(new RootDesignerComponent())); 2266Assert.Null(host.GetDesigner(new Component())); 2267Assert.Null(host.GetDesigner(new RootDesignerComponent())); 2275Assert.Throws<ArgumentNullException>("component", () => host.GetDesigner(null)); 2539Assert.Null(host.GetDesigner(rootComponent)); 2540Assert.NotNull(host.GetDesigner(component)); 2551Assert.Null(host.GetDesigner(rootComponent)); 2552Assert.NotNull(host.GetDesigner(component)); 2563Assert.Null(host.GetDesigner(rootComponent)); 2564Assert.Null(host.GetDesigner(component));
System\Drawing\Design\ToolboxItemTests.cs (6)
436.Setup(h => h.GetDesigner(component)) 502.Setup(h => h.GetDesigner(component)) 570.Setup(h => h.GetDesigner(component)) 755.Setup(h => h.GetDesigner(component)) 821.Setup(h => h.GetDesigner(component)) 889.Setup(h => h.GetDesigner(component))
System\Windows\Forms\Design\ChangeToolStripParentVerbTests.cs (1)
63_designerHostMock.Setup(h => h.GetDesigner(_toolStrip)).Returns(_parentControlDesigner);
System\Windows\Forms\Design\ControlCommandSetTests.cs (1)
108_designerHostMock.Setup(h => h.GetDesigner(childComponent)).Returns(designerMock.Object);
System\Windows\Forms\Design\ParentControlDesignerTests.cs (2)
116mockDesignerHost.Setup(h => h.GetDesigner(parentComponent)).Returns(_designer); 133mockDesignerHost.Verify(h => h.GetDesigner(parentComponent), Times.AtMost(2));
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (1)
22mockDesignerHost.Setup(dh => dh.GetDesigner(splitterPanel.Parent!)).Returns(splitContainerDesigner);
System\Windows\Forms\Design\StandardMenuStripVerbTests.cs (1)
58_designerHostMock.Setup(h => h.GetDesigner(_menuStrip)).Returns(_parentControlDesigner);
System\Windows\Forms\Design\ToolStripEditorManagerTests.cs (2)
140_mockDesignerHost.Setup(dh => dh.GetDesigner(It.IsAny<ToolStripItem>())).Returns(mockToolStripItemDesigner.Object); 153_mockDesignerHost.Verify(dh => dh.GetDesigner(_toolStripItem), Times.Once);
System\Windows\Forms\Design\ToolStripInSituServiceTests.cs (2)
169_mockDesignerHost.Setup(dh => dh.GetDesigner(menuStripMock.Object)).Returns(_mockToolStripDesigner.Object); 180_mockDesignerHost.Setup(dh => dh.GetDesigner(toolStripMenuItemMock.Object)).Returns(_mockToolStripItemDesigner.Object);
TestControlDesigner.Mocks.cs (1)
22.Setup(s => s.GetDesigner(It.IsAny<Control>()))
ToolStripMenuItemDesignerTest.cs (2)
106.Setup(s => s.GetDesigner(It.IsAny<Control>())) 135.Setup(s => s.GetDesigner(It.IsAny<Control>()))