2 interfaces inheriting from IDesigner
System.ComponentModel.TypeConverter (2)
System\ComponentModel\Design\IRootDesigner.cs (1)
12public interface IRootDesigner : IDesigner
System\ComponentModel\Design\ITreeDesigner.cs (1)
12public interface ITreeDesigner : IDesigner
2 implementations of IDesigner
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\DesignerHostTests.cs (1)
3160private abstract class CustomDesigner : IDesigner
System\ComponentModel\Design\SiteNestedContainerTests.cs (1)
1032private abstract class CustomDesigner : IDesigner
93 references to IDesigner
DesignSurface (1)
CustomControls\CustomButton.cs (1)
9[Designer(typeof(CustomButtonDesigner), typeof(System.ComponentModel.Design.IDesigner))]
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
214|| host.GetDesigner(newComp) is not IDesigner designer)
netstandard (1)
netstandard.cs (1)
252[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.IDesigner))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
238[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.IDesigner))]
System.ComponentModel.TypeConverter (5)
System\ComponentModel\Design\IDesignerHost.cs (1)
129IDesigner? GetDesigner(IComponent component);
System\ComponentModel\Design\ITreeDesigner.cs (1)
24IDesigner? Parent { get; }
System\ComponentModel\TypeDescriptor.cs (3)
2542public static IDesigner? CreateDesigner(IComponent component, Type designerBaseType) 2545IDesigner? result = null; 2575result = (IDesigner?)Activator.CreateInstance(type);
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1770IDesigner? designer = designerHost.GetDesigner(component);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
20/// <see cref="IDesigner.Verbs"/> from any associated <see cref="IDesignerHost"/>. Note that
System.Windows.Forms.Design (57)
System\ComponentModel\Design\ComponentDesigner.cs (5)
53internal virtual bool CanBeAssociatedWith(IDesigner parentDesigner) => true; 198IDesigner[] designers = new IDesigner[comps.Count]; 202IDesigner? designer = host.GetDesigner(comp); 220IDesigner? ITreeDesigner.Parent
System\ComponentModel\Design\DesignerHost.cs (8)
55private readonly Dictionary<IComponent, IDesigner> _designers; // designer -> component mapping 240IDesigner? designer; 652_designers.TryGetValue(component, out IDesigner? designer); 703&& _designers.TryGetValue(_rootComponent, out IDesigner? designer)) 727if (_designers.Remove(comp, out IDesigner? compDesigner)) 752if (_designers.Remove(_rootComponent, out IDesigner? rootComponentDesigner)) 1032IDesigner? IDesignerHost.GetDesigner(IComponent component) 1035_designers.TryGetValue(component, out IDesigner? designer);
System\ComponentModel\Design\DesignSurface.cs (2)
257protected internal virtual IDesigner? CreateDesigner(IComponent component, bool rootDesigner) 264: TypeDescriptor.CreateDesigner(component, typeof(IDesigner));
System\ComponentModel\Design\MenuCommandService.cs (1)
205IDesigner? designer = designerHost.GetDesigner(selectedComponent);
System\ComponentModel\Design\TypeDescriptorFilterService.cs (4)
24private static IDesigner? GetDesigner(IComponent component) 43IDesigner? designer = GetDesigner(component); 62IDesigner? designer = GetDesigner(component); 81IDesigner? designer = GetDesigner(component);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
560designer = TypeDescriptor.CreateDesigner(targetControl, typeof(IDesigner)) as ControlDesigner;
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
248IDesigner? designer = _designerHost.GetDesigner(component);
System\Windows\Forms\Design\CommandSet.cs (4)
719IDesigner? designer = host.GetDesigner(pri); 1659IDesigner? parentDesigner = designer.Parent; 1773foreach (IDesigner designer in commonParentDesigner.Children) 2108IDesigner? des = host.GetDesigner(c);
System\Windows\Forms\Design\ComponentTray.cs (5)
42private readonly IDesigner _mainDesigner; // the designer that is associated with this tray 76public ComponentTray(IDesigner mainDesigner, IServiceProvider serviceProvider) 765Type designerType = GetDesignerType(compType, typeof(IDesigner)); 1079IDesigner designer = host.GetDesigner(host.RootComponent); 2099IDesigner designer = host.GetDesigner(_component);
System\Windows\Forms\Design\ControlDesigner.cs (2)
401internal override bool CanBeAssociatedWith(IDesigner parentDesigner) => CanBeParentedTo(parentDesigner); 407public virtual bool CanBeParentedTo(IDesigner parentDesigner)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
212if (daType == typeof(IDesigner))
System\Windows\Forms\Design\DocumentDesigner.cs (1)
891IDesigner designer = host.GetDesigner(component);
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
2477IDesigner designer = host.GetDesigner(component); 2483designer = TypeDescriptor.CreateDesigner(component, typeof(IDesigner));
System\Windows\Forms\Design\SelectionUIService.cs (1)
1294/// <see cref="IDesigner"/> interface to provide features at design time.
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
24public override bool CanBeParentedTo(IDesigner parentDesigner)
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\TabPageDesigner.cs (1)
12public override bool CanBeParentedTo(IDesigner parentDesigner) => (parentDesigner is not null && parentDesigner.Component is TabControl);
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
76IDesigner designer = designerHost.GetDesigner(component);
System\Windows\Forms\Design\ToolStripContentPanelDesigner.cs (1)
51public override bool CanBeParentedTo(IDesigner parentDesigner)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1243IDesigner itemDesigner = _host.GetDesigner(selectedItem);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
391IDesigner designer = designerHost.GetDesigner(component); 442IDesigner designer = designerHost.GetDesigner(component); 481IDesigner designer = designerHost.GetDesigner(component); 521IDesigner designer = designerHost.GetDesigner(component);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
69internal override bool CanBeAssociatedWith(IDesigner parentDesigner)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
881IDesigner designer = host.GetDesigner(pri);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
1327IDesigner designer = _designerHost.GetDesigner(ownerItem); 2503IDesigner designer = _designerHost.GetDesigner(_parentItem);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
152public override bool CanBeParentedTo(IDesigner parentDesigner)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
48private IDesigner _designer;
System.Windows.Forms.Design.Tests (25)
System\ComponentModel\Design\CollectionEditorTests.cs (4)
184Mock<IDesigner> mockDesigner = new(MockBehavior.Strict); 192public void CollectionEditor_CreateInstance_WithContextWithHostReturningComponent_CallsCreateComponent(IDesigner designer) 240public void CollectionEditor_CreateInstance_WithContextWithHostReturningNullComponent_CallsCreateComponent(IDesigner designer) 303Mock<IDesigner> mockDesigner = new(MockBehavior.Strict);
System\ComponentModel\Design\CollectionFormTests.cs (4)
535Mock<IDesigner> mockDesigner = new(MockBehavior.Strict); 543public void CollectionForm_CreateInstance_WithContextWithHostReturningComponent_CallsCreateComponent(IDesigner designer) 592public void CollectionForm_CreateInstance_WithContextWithHostReturningNullComponent_CallsCreateComponent(IDesigner designer) 656Mock<IDesigner> mockDesigner = new(MockBehavior.Strict);
System\ComponentModel\Design\ComponentDesignerTests.cs (4)
100Mock<IDesigner> mockDesigner1 = new(MockBehavior.Strict); 101Mock<IDesigner> mockDesigner2 = new(MockBehavior.Strict); 139Mock<IDesigner> mockDesigner = new(MockBehavior.Strict); 153.Returns<IDesigner>(null)
System\ComponentModel\Design\DesignSurfaceTests.cs (1)
1739public new IDesigner CreateDesigner(IComponent component, bool rootDesigner) => base.CreateDesigner(component, rootDesigner);
System\Drawing\Design\ToolboxItemTests.cs (7)
408Mock<IDesigner> mockDesigner = new(MockBehavior.Strict); 420public void ToolboxItem_CreateComponents_InvokeWithHostWithNonIComponentInitializerDesigner_ReturnsExpected(Component component, IDesigner designer) 484Mock<IDesigner> mockDesigner = new(MockBehavior.Strict); 550Mock<IDesigner> mockDesigner = new(MockBehavior.Strict); 739public void ToolboxItem_CreateComponentsCore_InvokeWithHostWithNonIComponentInitializerDesigner_ReturnsExpected(Component component, IDesigner designer) 803Mock<IDesigner> mockDesigner = new(MockBehavior.Strict); 869Mock<IDesigner> mockDesigner = new(MockBehavior.Strict);
System\Windows\Forms\Design\InheritanceUITests.cs (2)
45Mock<IDesigner> mockDesigner = new(MockBehavior.Strict); 68Mock<IDesigner> mockDesigner = new(MockBehavior.Strict);
System\Windows\Forms\Design\TabPageDesignerTests.cs (2)
24Mock<IDesigner> mockDesigner = new(); 38Mock<IDesigner> mockDesigner = new();
SystemDesignMetadataReader.cs (1)
17IDesigner designer = designSurface.CreateDesigner(new Control(), true);