29 references to GrowAndShrink
System.Windows.Forms (28)
winforms\Managed\System\WinForms\Button.cs (3)
85
if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.
GrowAndShrink
, (int)AutoSizeMode.GrowOnly)){
119
return AutoSizeMode == AutoSizeMode.
GrowAndShrink
? prefSize : LayoutUtils.UnionSizes(prefSize, Size);
139
return AutoSizeMode == AutoSizeMode.
GrowAndShrink
? paddedSize : LayoutUtils.UnionSizes(paddedSize, Size);
winforms\Managed\System\WinForms\CheckBox.cs (1)
82
SetAutoSizeMode(AutoSizeMode.
GrowAndShrink
);
winforms\Managed\System\WinForms\Form.cs (3)
707
if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.
GrowAndShrink
, (int)AutoSizeMode.GrowOnly)){
4816
Size adjustedSize = AutoSizeMode == AutoSizeMode.
GrowAndShrink
? prefSize : LayoutUtils.UnionSizes(prefSize, Size);
7384
if (AutoSizeMode == AutoSizeMode.
GrowAndShrink
)
winforms\Managed\System\WinForms\GroupBox.cs (1)
131
if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.
GrowAndShrink
, (int)AutoSizeMode.GrowOnly)){
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (2)
379
return state[_autoSizeModeSection] == 0 ? AutoSizeMode.GrowOnly : AutoSizeMode.
GrowAndShrink
;
447
state[_autoSizeModeSection] = mode == AutoSizeMode.
GrowAndShrink
? 1 : 0;
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?");
winforms\Managed\System\WinForms\Panel.cs (1)
103
if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.
GrowAndShrink
, (int)AutoSizeMode.GrowOnly)){
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (2)
201
this.overarchingTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.
GrowAndShrink
;
291
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.
GrowAndShrink
;
winforms\Managed\System\WinForms\RadioButton.cs (1)
82
SetAutoSizeMode(AutoSizeMode.
GrowAndShrink
);
winforms\Managed\System\WinForms\ToolStrip.cs (1)
224
SetAutoSizeMode(AutoSizeMode.
GrowAndShrink
);
winforms\Managed\System\WinForms\TrustManagerMoreInformation.cs (3)
212
this.tableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.
GrowAndShrink
;
323
this.btnClose.AutoSizeMode = System.Windows.Forms.AutoSizeMode.
GrowAndShrink
;
336
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.
GrowAndShrink
;
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (6)
186
this.tableLayoutPanelOuter.AutoSizeMode = System.Windows.Forms.AutoSizeMode.
GrowAndShrink
;
204
this.warningTextTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.
GrowAndShrink
;
266
this.btnInstall.AutoSizeMode = System.Windows.Forms.AutoSizeMode.
GrowAndShrink
;
275
this.btnCancel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.
GrowAndShrink
;
285
this.tableLayoutPanelInfo.AutoSizeMode = System.Windows.Forms.AutoSizeMode.
GrowAndShrink
;
363
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.
GrowAndShrink
;
winforms\Managed\System\WinForms\UserControl.cs (1)
100
if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.
GrowAndShrink
, (int)AutoSizeMode.GrowOnly))
System.Workflow.ComponentModel (1)
AuthoringOM\Design\FreeFormDesigner.cs (1)
351
if (AutoSize && AutoSizeMode == AutoSizeMode.
GrowAndShrink
)