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)
594get => DefaultLayout.GetAnchor(this); 595set => DefaultLayout.SetAnchor(this, value); 622if (value && parent.LayoutEngine == DefaultLayout.Instance) 664public virtual LayoutEngine LayoutEngine => DefaultLayout.Instance; 1696get => DefaultLayout.GetDock(this); 1702DefaultLayout.SetDock(this, value); 9751&& (parent.LayoutEngine == DefaultLayout.Instance)) 9754DefaultLayout.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)
657DefaultLayout.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)
277/// Setting the control to <see cref="DockStyle.Fill"/> (via <see cref="DefaultLayout"/> engine) 505if (element.Container is Control { LayoutEngine: DefaultLayout }) 534/// 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) 821if (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)