1 instantiation of DefaultLayout
System.Windows.Forms (1)
System\Windows\Forms\Layout\DefaultLayout.cs (1)
14internal static DefaultLayout Instance { get; } = new();
24 references to DefaultLayout
System.Windows.Forms (24)
System\Windows\Forms\Control.cs (8)
595get => DefaultLayout.GetAnchor(this); 596set => DefaultLayout.SetAnchor(this, value); 623if (value && parent.LayoutEngine == DefaultLayout.Instance) 665public virtual LayoutEngine LayoutEngine => DefaultLayout.Instance; 1697get => DefaultLayout.GetDock(this); 1703DefaultLayout.SetDock(this, value); 9779&& (parent.LayoutEngine == DefaultLayout.Instance)) 9782DefaultLayout.ScaleAnchorInfo(this, factor);
System\Windows\Forms\Controls\Buttons\Button.cs (1)
65if (ParentInternal.LayoutEngine == DefaultLayout.Instance)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
101if (ParentInternal.LayoutEngine == DefaultLayout.Instance)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
655DefaultLayout.SetDock(this, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
135get { return DefaultLayout.Instance; }
System\Windows\Forms\Form.cs (1)
553if (toLayout.LayoutEngine == DefaultLayout.Instance)
System\Windows\Forms\Layout\CommonProperties.cs (3)
272/// Setting the control to <see cref="DockStyle.Fill"/> (via <see cref="DefaultLayout"/> engine) 500if (element.Container is Control { LayoutEngine: DefaultLayout }) 529/// Do not use this. Use <see cref="DefaultLayout.GetAnchor(IArrangedElement)"/>.
System\Windows\Forms\Layout\DefaultLayout.cs (1)
14internal static DefaultLayout Instance { get; } = new();
System\Windows\Forms\Layout\LayoutUtils.cs (2)
266DockStyle dockStyle = DefaultLayout.GetDock(element); 272return DefaultLayout.GetAnchor(element);
System\Windows\Forms\Layout\TableLayout.cs (2)
695if (containerInfo.Container is TableLayoutPanel tlp && tlp.ParentInternal is not null && tlp.ParentInternal.LayoutEngine == DefaultLayout.Instance) 823if (containerInfo.Container is TableLayoutPanel tlp && tlp.ParentInternal is not null && tlp.ParentInternal.LayoutEngine == DefaultLayout.Instance)
System\Windows\Forms\Panels\Panel.cs (1)
84if (ParentInternal.LayoutEngine == DefaultLayout.Instance)
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
383bool defaultLayoutEngine = (LayoutEngine == DefaultLayout.Instance);
System\Windows\Forms\UserControl.cs (1)
88if (toLayout.LayoutEngine == DefaultLayout.Instance)