4 references to GetAutoSizeMode
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
659protected AutoSizeMode GetAutoSizeMode() => CommonProperties.GetAutoSizeMode(this);
System\Windows\Forms\Layout\DefaultLayout.cs (3)
49if (CommonProperties.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink) 84Debug.Assert(CommonProperties.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink || (newSize.Height >= oldBounds.Height && newSize.Width >= oldBounds.Width), 101Debug.Assert(CommonProperties.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink || newBounds.Contains(oldBounds), "How did we resize in such a way we no longer contain our old bounds?");