29 references to GrowAndShrink
System.Windows.Forms (28)
winforms\Managed\System\WinForms\Button.cs (3)
85if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly)){ 119return AutoSizeMode == AutoSizeMode.GrowAndShrink ? prefSize : LayoutUtils.UnionSizes(prefSize, Size); 139return AutoSizeMode == AutoSizeMode.GrowAndShrink ? paddedSize : LayoutUtils.UnionSizes(paddedSize, Size);
winforms\Managed\System\WinForms\CheckBox.cs (1)
82SetAutoSizeMode(AutoSizeMode.GrowAndShrink);
winforms\Managed\System\WinForms\Form.cs (3)
707if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly)){ 4816Size adjustedSize = AutoSizeMode == AutoSizeMode.GrowAndShrink ? prefSize : LayoutUtils.UnionSizes(prefSize, Size); 7384if (AutoSizeMode == AutoSizeMode.GrowAndShrink)
winforms\Managed\System\WinForms\GroupBox.cs (1)
131if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly)){
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (2)
379return state[_autoSizeModeSection] == 0 ? AutoSizeMode.GrowOnly : AutoSizeMode.GrowAndShrink; 447state[_autoSizeModeSection] = mode == AutoSizeMode.GrowAndShrink ? 1 : 0;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (3)
51if (CommonProperties.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink) { 78Debug.Assert((CommonProperties.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink || newSize.Height >= oldBounds.Height && newSize.Width >= oldBounds.Width), 93Debug.Assert((CommonProperties.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink || newBounds.Contains(oldBounds)), "How did we resize in such a way we no longer contain our old bounds?");
winforms\Managed\System\WinForms\Panel.cs (1)
103if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly)){
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (2)
201this.overarchingTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 291this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
winforms\Managed\System\WinForms\RadioButton.cs (1)
82SetAutoSizeMode(AutoSizeMode.GrowAndShrink);
winforms\Managed\System\WinForms\ToolStrip.cs (1)
224SetAutoSizeMode(AutoSizeMode.GrowAndShrink);
winforms\Managed\System\WinForms\TrustManagerMoreInformation.cs (3)
212this.tableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 323this.btnClose.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 336this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (6)
186this.tableLayoutPanelOuter.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 204this.warningTextTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 266this.btnInstall.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 275this.btnCancel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 285this.tableLayoutPanelInfo.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 363this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
winforms\Managed\System\WinForms\UserControl.cs (1)
100if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly))
System.Workflow.ComponentModel (1)
AuthoringOM\Design\FreeFormDesigner.cs (1)
351if (AutoSize && AutoSizeMode == AutoSizeMode.GrowAndShrink)