4 overrides of GetPreferredSize
System.Windows.Forms (4)
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (1)
804
internal override Size
GetPreferredSize
(IArrangedElement container, Size proposedBounds) {
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (1)
48
internal override Size
GetPreferredSize
(IArrangedElement container, Size proposedConstraints) {
winforms\Managed\System\WinForms\Layout\TableLayout.cs (1)
225
internal override Size
GetPreferredSize
(IArrangedElement container, Size proposedConstraints) {
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (1)
193
internal override Size
GetPreferredSize
(IArrangedElement container, Size proposedConstraints) {
6 references to GetPreferredSize
System.Windows.Forms (6)
winforms\Managed\System\WinForms\ArrangedElement.cs (1)
140
Size preferredSize = LayoutEngine.
GetPreferredSize
(this, constrainingSize - Padding.Size) + Padding.Size;
winforms\Managed\System\WinForms\ContainerControl.cs (1)
709
return LayoutEngine.
GetPreferredSize
(this, proposedSize - totalPadding) + totalPadding;
winforms\Managed\System\WinForms\GroupBox.cs (1)
696
Size prefSize = LayoutEngine.
GetPreferredSize
(this, proposedSize - totalPadding);
winforms\Managed\System\WinForms\Panel.cs (1)
197
return LayoutEngine.
GetPreferredSize
(this, proposedSize - totalPadding) + totalPadding;
winforms\Managed\System\WinForms\ToolStrip.cs (1)
2458
Size prefSize = LayoutEngine.
GetPreferredSize
(this, proposedSize - padding.Size);
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (1)
669
Size preferredSize = LayoutEngine.
GetPreferredSize
(this, constrainingSize - Padding.Size) + Padding.Size;