4 references to GetAutoSizeMode
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
659
protected AutoSizeMode GetAutoSizeMode() => CommonProperties.
GetAutoSizeMode
(this);
System\Windows\Forms\Layout\DefaultLayout.cs (3)
49
if (CommonProperties.
GetAutoSizeMode
(element) == AutoSizeMode.GrowAndShrink)
84
Debug.Assert(CommonProperties.
GetAutoSizeMode
(element) == AutoSizeMode.GrowAndShrink || (newSize.Height >= oldBounds.Height && newSize.Width >= oldBounds.Width),
101
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?");