20 types derived from ControlDesigner
DesignSurface (1)
CustomControls\CustomButtonDesigner.cs (1)
9public class CustomButtonDesigner : ControlDesigner
System.Windows.Forms.Design (17)
System\Windows\Forms\Design\ButtonBaseDesigner.cs (1)
16internal class ButtonBaseDesigner : ControlDesigner
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
16internal class ComboBoxDesigner : ControlDesigner
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
12internal class DataGridViewDesigner : ControlDesigner
System\Windows\Forms\Design\DateTimePickerDesigner.cs (1)
10internal class DateTimePickerDesigner : ControlDesigner
System\Windows\Forms\Design\LabelDesigner.cs (1)
17internal class LabelDesigner : ControlDesigner
System\Windows\Forms\Design\ListBoxDesigner.cs (1)
14internal class ListBoxDesigner : ControlDesigner
System\Windows\Forms\Design\ListViewDesigner.cs (1)
17internal class ListViewDesigner : ControlDesigner
System\Windows\Forms\Design\MonthCalendarDesigner.cs (1)
6internal class MonthCalendarDesigner : ControlDesigner
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
20public partial class ParentControlDesigner : ControlDesigner, IOleDragClient
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
15internal class PictureBoxDesigner : ControlDesigner
System\Windows\Forms\Design\PropertyGridDesigner.cs (1)
8internal class PropertyGridDesigner : ControlDesigner
System\Windows\Forms\Design\SplitterDesigner.cs (1)
13internal class SplitterDesigner : ControlDesigner
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
14internal class TextBoxBaseDesigner : ControlDesigner
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
20internal class ToolStripDesigner : ControlDesigner
System\Windows\Forms\Design\TrackBarDesigner.cs (1)
8internal class TrackBarDesigner : ControlDesigner
System\Windows\Forms\Design\TreeViewDesigner.cs (1)
15internal class TreeViewDesigner : ControlDesigner
System\Windows\Forms\Design\UpDownBaseDesigner.cs (1)
15internal class UpDownBaseDesigner : ControlDesigner
System.Windows.Forms.Design.Tests (1)
TestControlDesigner.cs (1)
10internal partial class TestControlDesigner : ControlDesigner
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
321internal class SampleControlDesigner : ControlDesigner
87 references to ControlDesigner
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net10.0\System.Design.Forwards.cs (1)
86[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Windows.Forms.Design.ControlDesigner))]
System.Windows.Forms.Design (84)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
513return (_hitTestedGlyph.Behavior is ControlDesigner.TransparentBehavior); 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\ControlBodyGlyph.cs (2)
27ControlDesigner designer) 28: base(relatedComponent, new ControlDesigner.TransparentBehavior(designer))
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (8)
194private void AddSnapLines(ControlDesigner controlDesigner, List<SnapLine> horizontalList, List<SnapLine> verticalList, bool isTarget, bool validTarget) 489if (host.GetDesigner(c) is ControlDesigner controlDesigner) 500private bool AddControlSnaplinesWhenResizing(ControlDesigner designer, Control control, Control? targetControl) 557ControlDesigner? designer; 558if (host.GetDesigner(targetControl) is not ControlDesigner controlDesigner) 560designer = TypeDescriptor.CreateDesigner(targetControl, typeof(IDesigner)) as ControlDesigner; 593if (host.GetDesigner(comp) is ControlDesigner designer) 605ControlDesigner? internalDesigner = designer.InternalControlDesigner(i);
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 (3)
22private readonly Dictionary<IComponent, ControlDesigner> _componentToDesigner; 140if (_componentToDesigner.TryGetValue(control, out ControlDesigner? controlDesigner)) 249if (designer is ControlDesigner controlDesigner)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (2)
45public ToolboxItemSnapLineBehavior(IServiceProvider serviceProvider, BehaviorService behaviorService, ControlDesigner controlDesigner) 55public ToolboxItemSnapLineBehavior(IServiceProvider serviceProvider, BehaviorService behaviorService, ControlDesigner controlDesigner, bool allowDragBox)
System\Windows\Forms\Design\CommandSet.cs (5)
461if (host.GetDesigner(comp) is ControlDesigner des && (des.SelectionRules & selectionRules) == selectionRules) 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) 2109if (des is ControlDesigner)
System\Windows\Forms\Design\ComponentTray.cs (2)
281if (selObj is IComponent selectedComponent && !(host.GetDesigner(selectedComponent) is ControlDesigner)) 766return !(typeof(ControlDesigner).IsAssignableFrom(designerType));
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
197ControlDesigner? controlDesigner = host?.GetDesigner(control) as ControlDesigner;
System\Windows\Forms\Design\ControlCommandSet.cs (6)
526ControlDesigner des = host.GetDesigner(comp) as ControlDesigner; 755des = host.GetDesigner(component) as ControlDesigner; 1479ControlDesigner controlDesigner = host.GetDesigner(selection) as ControlDesigner; 1489controlDesigner = host.GetDesigner(selection) as ControlDesigner;
System\Windows\Forms\Design\ControlDesigner.ChildSubClass.cs (2)
10private ControlDesigner _designer; 13public ChildSubClass(ControlDesigner designer, IntPtr hwnd)
System\Windows\Forms\Design\ControlDesigner.ChildWindowTarget.cs (2)
10private readonly ControlDesigner _designer; 14public ChildWindowTarget(ControlDesigner designer, Control childControl, IWindowTarget oldWindowTarget)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (3)
13private readonly ControlDesigner _designer; 18public ControlDesignerAccessibleObject(ControlDesigner designer, Control control) 88if (DesignerHost.GetDesigner(owner) is ControlDesigner ctlDesigner)
System\Windows\Forms\Design\ControlDesigner.cs (10)
391public virtual ControlDesigner? InternalControlDesigner(int internalControlIndex) => null; 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) 1427if (_host?.GetDesigner(comp) is ControlDesigner des && (des.SelectionRules & SelectionRules.Moveable) != 0) 1470if (parentDesigner is ControlDesigner cd) 1499if (parentDesigner is ControlDesigner cd) 1528if (parentDesigner is ControlDesigner cd) 1633properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ControlDesigner), prop, []); 1644typeof(ControlDesigner), 1657typeof(ControlDesigner),
System\Windows\Forms\Design\ControlDesigner.DesignerWindowTarget.cs (3)
10internal ControlDesigner _designer; 13public DesignerWindowTarget(ControlDesigner designer) 49ControlDesigner currentDesigner = _designer;
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (1)
15public DockingActionList(ControlDesigner owner)
System\Windows\Forms\Design\ControlDesigner.TransparentBehavior.cs (2)
18private readonly ControlDesigner _designer; 24internal TransparentBehavior(ControlDesigner designer) => _designer = designer.OrThrowIfNull();
System\Windows\Forms\Design\DocumentDesigner.cs (1)
893|| designer is not ControlDesigner cd
System\Windows\Forms\Design\ParentControlDesigner.cs (8)
456&& host.GetDesigner(newChild) as ControlDesigner is not null && !(newChild is Form form && form.TopLevel)) 771public virtual bool CanParent(ControlDesigner controlDesigner) 899ControlDesigner cd = host.GetDesigner(comp) as ControlDesigner; 2484ControlDesigner cd = designer as ControlDesigner; 2502ControlDesigner controlDesigner = cd as ControlDesigner;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
83if (selUIsvc._host.GetDesigner(comp) is ControlDesigner cd)
System\Windows\Forms\Design\SplitContainerDesigner.cs (3)
86/// Returns the internal control designer with the specified index in the <see cref="ControlDesigner"/>. 89public override ControlDesigner? InternalControlDesigner(int internalControlIndex) 105return _designerHost?.GetDesigner(panel) as ControlDesigner;
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (3)
126public override ControlDesigner? InternalControlDesigner(int internalControlIndex) 140return _designerHost.GetDesigner(panel) as ControlDesigner; 235ControlDesigner? panelDesigner = InternalControlDesigner(i);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (6)
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 (4)
1131if (_designerHost.GetDesigner(_designerHost.RootComponent) is ControlDesigner designer) 1199if (_designerHost.GetDesigner(_designerHost.RootComponent) is ControlDesigner designer) 2632internal class DropDownBehavior : ControlDesigner.TransparentBehavior 2639internal DropDownBehavior(ControlDesigner designer, ToolStripMenuItemDesigner menuItemDesigner) : base(designer)
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (2)
14private readonly ControlDesigner.DesignerControlCollection _collection; 31Action action = () => new ControlDesigner.DesignerControlCollection(null!);