4 references to GetAutoSizeMode
System.Windows.Forms (4)
winforms\Managed\System\WinForms\Control.cs (1)
1011
return CommonProperties.
GetAutoSizeMode
(this);
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (3)
51
if (CommonProperties.
GetAutoSizeMode
(element) == AutoSizeMode.GrowAndShrink) {
78
Debug.Assert((CommonProperties.
GetAutoSizeMode
(element) == AutoSizeMode.GrowAndShrink || newSize.Height >= oldBounds.Height && newSize.Width >= oldBounds.Width),
93
Debug.Assert((CommonProperties.
GetAutoSizeMode
(element) == AutoSizeMode.GrowAndShrink || newBounds.Contains(oldBounds)), "How did we resize in such a way we no longer contain our old bounds?");