1 instantiation of DefaultLayout
System.Windows.Forms (1)
System\Windows\Forms\Layout\DefaultLayout.cs (1)
13internal static DefaultLayout Instance { get; } = new();
47 references to DefaultLayout
System.Windows.Forms (24)
System\Windows\Forms\Control.cs (8)
663get => DefaultLayout.GetAnchor(this); 664set => DefaultLayout.SetAnchor(this, value); 691if (value && parent.LayoutEngine == DefaultLayout.Instance) 733public virtual LayoutEngine LayoutEngine => DefaultLayout.Instance; 1765get => DefaultLayout.GetDock(this); 1771DefaultLayout.SetDock(this, value); 9856&& (parent.LayoutEngine == DefaultLayout.Instance)) 9859DefaultLayout.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)
654DefaultLayout.SetDock(this, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
137get { return DefaultLayout.Instance; }
System\Windows\Forms\Form.cs (1)
550if (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)
13internal 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)
80if (ParentInternal.LayoutEngine == DefaultLayout.Instance)
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
377bool defaultLayoutEngine = (LayoutEngine == DefaultLayout.Instance);
System\Windows\Forms\UserControl.cs (1)
88if (toLayout.LayoutEngine == DefaultLayout.Instance)
System.Windows.Forms.UI.IntegrationTests (23)
AnchorLayoutTests.cs (23)
57DefaultLayout.AnchorInfo? anchorInfo = DefaultLayout.GetAnchorInfo(button); 64anchorInfo = DefaultLayout.GetAnchorInfo(button); 81DefaultLayout.AnchorInfo? anchorInfo = DefaultLayout.GetAnchorInfo(button); 85anchorInfo = DefaultLayout.GetAnchorInfo(button); 102DefaultLayout.AnchorInfo? anchorInfo = DefaultLayout.GetAnchorInfo(button); 106anchorInfo = DefaultLayout.GetAnchorInfo(button); 110anchorInfo = DefaultLayout.GetAnchorInfo(button); 129DefaultLayout.AnchorInfo? anchorInfo = DefaultLayout.GetAnchorInfo(button); 150DefaultLayout.AnchorInfo? anchorInfo = DefaultLayout.GetAnchorInfo(button); 158anchorInfo = DefaultLayout.GetAnchorInfo(button); 179DefaultLayout.AnchorInfo? anchorInfo = DefaultLayout.GetAnchorInfo(button); 188anchorInfo = DefaultLayout.GetAnchorInfo(button); 213DefaultLayout.AnchorInfo? anchorInfo = DefaultLayout.GetAnchorInfo(button); 218anchorInfo = DefaultLayout.GetAnchorInfo(button); 285DefaultLayout.AnchorInfo? anchorInfo = DefaultLayout.GetAnchorInfo(button);