253 references to GrowAndShrink
PresentationUI (51)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (9)
122this.tableLayoutPanel3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 160this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 432this.tableLayoutPanel2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 450this.tableLayoutPanel4.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 521this._documentDetailBox.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 533this._documentTable.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 645this._fileSystemBox.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 656this._fileTable.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 729this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (4)
57this._mainDialogTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 76this._buttonFlowLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 115this._listButtonFlowLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 163this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (6)
58_buttomControlLayoutpanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 70_addButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 80_cancelButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 95_userInputTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 198_mainDialogTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 219AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (2)
93this._flowLayoutPanel2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 212this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
MS\Internal\Documents\RMPermissions.Designer.cs (7)
60this.mainContentFlowPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 74this.authenticatedAsFlowPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 94this.permissionsFlowPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 107this.contactFlowPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 128this.expirationFlowPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 146this.actionsFlowPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 185this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (9)
76this.flowLayoutPanelMain.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 130this.flowLayoutPanelUnrestricted.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 139this.flowLayoutPanelPermissions.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 186this.flowLayoutPanelPeople.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 212this.buttonAddUser.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 248this.flowLayoutPanelContact.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 273this.flowLayoutPanelExpires.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 299this.flowLayoutPanelActions.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 372this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (5)
75_flowpanelMiddleControls.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 88_flowpanelBottomControls.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 140_columnHeaderPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 184_mainLayoutTable.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 205AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
MS\Internal\Documents\SigningDialog.Designer.cs (8)
62_userInputFlowPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 71_signatureControlInputLayoutTable.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 180_buttonflowLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 198_cancelButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 212_signButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 226_signSaveAsButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 238_mainLayoutTable.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 257AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
MS\Internal\Documents\SigningProgress.Designer.cs (1)
58AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
System.Windows.Forms (14)
System\Windows\Forms\Controls\Buttons\Button.cs (2)
89return AutoSizeMode == AutoSizeMode.GrowAndShrink ? preferredSize : LayoutUtils.UnionSizes(preferredSize, Size); 107return AutoSizeMode == AutoSizeMode.GrowAndShrink ? paddedSize : LayoutUtils.UnionSizes(paddedSize, Size);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
46SetAutoSizeMode(AutoSizeMode.GrowAndShrink);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
50SetAutoSizeMode(AutoSizeMode.GrowAndShrink);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (2)
228AutoSizeMode = AutoSizeMode.GrowAndShrink, 267AutoSizeMode = AutoSizeMode.GrowAndShrink;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
152SetAutoSizeMode(AutoSizeMode.GrowAndShrink);
System\Windows\Forms\Form.cs (2)
4208Size adjustedSize = AutoSizeMode == AutoSizeMode.GrowAndShrink ? prefSize : LayoutUtils.UnionSizes(prefSize, Size); 6924if (AutoSizeMode == AutoSizeMode.GrowAndShrink)
System\Windows\Forms\Layout\CommonProperties.cs (2)
415return state[s_autoSizeModeSection] == 0 ? AutoSizeMode.GrowOnly : AutoSizeMode.GrowAndShrink; 492state[s_autoSizeModeSection] = mode == AutoSizeMode.GrowAndShrink ? 1 : 0;
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?");
System.Windows.Forms.Design (15)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (4)
182_buttonOK.AutoSizeMode = AutoSizeMode.GrowAndShrink; 193_buttonSave.AutoSizeMode = AutoSizeMode.GrowAndShrink; 203_groupBoxMode.AutoSizeMode = AutoSizeMode.GrowAndShrink; 257_okSaveTableLayoutPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink;
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (2)
93_tableLayoutPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink; 160AutoSizeMode = AutoSizeMode.GrowAndShrink;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
297_overarchingTableLayoutPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink; 457AutoSizeMode = AutoSizeMode.GrowAndShrink;
System\Windows\Forms\Design\DocumentDesigner.cs (1)
554else if (autoSize && (mode == AutoSizeMode.GrowAndShrink) && !(Control is Form))
System\Windows\Forms\Design\StyleEditorForm.cs (6)
210_addButton.AutoSizeMode = AutoSizeMode.GrowAndShrink; 218_removeButton.AutoSizeMode = AutoSizeMode.GrowAndShrink; 226_insertButton.AutoSizeMode = AutoSizeMode.GrowAndShrink; 245_okButton.AutoSizeMode = AutoSizeMode.GrowAndShrink; 253_cancelButton.AutoSizeMode = AutoSizeMode.GrowAndShrink; 395_sizeTypeTableLayoutPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink;
System.Windows.Forms.Tests (167)
System\Windows\Forms\ButtonTests.cs (143)
293[InlineData(AutoSizeMode.GrowAndShrink, 1)] 341[InlineData(AutoSizeMode.GrowAndShrink, 1)] 441[InlineData(AutoSizeMode.GrowAndShrink, 1)] 514[InlineData(AutoSizeMode.GrowAndShrink, 1)] 600control.AutoSizeMode = AutoSizeMode.GrowAndShrink; 692AutoSizeMode = AutoSizeMode.GrowAndShrink, 947AutoSizeMode = AutoSizeMode.GrowAndShrink, 1167yield return new object[] { AutoSizeMode.GrowAndShrink, Size.Empty, new Size(14, 9) }; 1168yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(14, 9) }; 1169yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(14, 9) }; 1170yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(14, 9) }; 1171yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(14, 9) }; 1172yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(14, 9) }; 1173yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(14, 9) }; 1174yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(14, 9) }; 1175yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(14, 9) }; 1176yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(14, 9) }; 1177yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(14, 9) }; 1178yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(14, 9) }; 1216yield return new object[] { AutoSizeMode.GrowAndShrink, Size.Empty, new Size(18, 15) }; 1217yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(18, 15) }; 1218yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(18, 15) }; 1219yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(18, 15) }; 1220yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(18, 15) }; 1221yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(18, 15) }; 1222yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(18, 15) }; 1223yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(18, 15) }; 1224yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(18, 15) }; 1225yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(18, 15) }; 1226yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(18, 15) }; 1227yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(18, 15) }; 1266yield return new object[] { AutoSizeMode.GrowAndShrink, Size.Empty, new Size(18, 15) }; 1267yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(18, 15) }; 1268yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(18, 15) }; 1269yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(18, 15) }; 1270yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(18, 15) }; 1271yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(18, 15) }; 1272yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(18, 15) }; 1273yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(18, 15) }; 1274yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(18, 15) }; 1275yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(18, 15) }; 1276yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(18, 15) }; 1277yield return new object[] { AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(18, 15) }; 1358AutoSizeMode = AutoSizeMode.GrowAndShrink, 1376yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(8, 8) }; 1377yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(8, 8) }; 1378yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(8, 8) }; 1379yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(8, 8) }; 1380yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(8, 8) }; 1381yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(8, 8) }; 1382yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(8, 8) }; 1383yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(8, 8) }; 1384yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(8, 8) }; 1385yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(8, 8) }; 1386yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(8, 8) }; 1387yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(8, 8) }; 1389yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(6, 6) }; 1390yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(6, 6) }; 1391yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(6, 6) }; 1392yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(6, 6) }; 1393yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(6, 6) }; 1394yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(6, 6) }; 1395yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(6, 6) }; 1396yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(6, 6) }; 1397yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(6, 6) }; 1398yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(6, 6) }; 1399yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(6, 6) }; 1400yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(6, 6) }; 1402yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(6, 6) }; 1403yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(6, 6) }; 1404yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(6, 6) }; 1405yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(6, 6) }; 1406yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(6, 6) }; 1407yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(6, 6) }; 1408yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(6, 6) }; 1409yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(6, 6) }; 1410yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(6, 6) }; 1411yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(6, 6) }; 1412yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(6, 6) }; 1413yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(6, 6) }; 1454yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(12, 14) }; 1455yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(12, 14) }; 1456yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(12, 14) }; 1457yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(12, 14) }; 1458yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(12, 14) }; 1459yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(12, 14) }; 1460yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(12, 14) }; 1461yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(12, 14) }; 1462yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(12, 14) }; 1463yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(12, 14) }; 1464yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(12, 14) }; 1465yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(12, 14) }; 1467yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(10, 12) }; 1468yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(10, 12) }; 1469yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(10, 12) }; 1470yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(10, 12) }; 1471yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(10, 12) }; 1472yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(10, 12) }; 1473yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(10, 12) }; 1474yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(10, 12) }; 1475yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(10, 12) }; 1476yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(10, 12) }; 1477yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(10, 12) }; 1478yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(10, 12) }; 1480yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(10, 12) }; 1481yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(10, 12) }; 1482yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(10, 12) }; 1483yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(10, 12) }; 1484yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(10, 12) }; 1485yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(10, 12) }; 1486yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(10, 12) }; 1487yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(10, 12) }; 1488yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(10, 12) }; 1489yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(10, 12) }; 1490yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(10, 12) }; 1491yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(10, 12) }; 1533yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(12, 14) }; 1534yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(12, 14) }; 1535yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(12, 14) }; 1536yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(12, 14) }; 1537yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(12, 14) }; 1538yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(12, 14) }; 1539yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(12, 14) }; 1540yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(12, 14) }; 1541yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(12, 14) }; 1542yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(12, 14) }; 1543yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(12, 14) }; 1544yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(12, 14) }; 1561yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(10, 12) }; 1562yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(10, 12) }; 1563yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(10, 12) }; 1564yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(10, 12) }; 1565yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(10, 12) }; 1566yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(10, 12) }; 1567yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(10, 12) }; 1568yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(10, 12) }; 1569yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(10, 12) }; 1570yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(10, 12) }; 1571yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(10, 12) }; 1572yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(10, 12) }; 1654AutoSizeMode = AutoSizeMode.GrowAndShrink, 1702AutoSizeMode = AutoSizeMode.GrowAndShrink, 1750AutoSizeMode = AutoSizeMode.GrowAndShrink,
System\Windows\Forms\CheckBoxTests.cs (1)
491Assert.Equal(AutoSizeMode.GrowAndShrink, control.GetAutoSizeMode());
System\Windows\Forms\ControlTests.Methods.cs (3)
7282yield return new object[] { AutoSizeMode.GrowAndShrink, AutoSizeMode.GrowAndShrink }; 7283yield return new object[] { AutoSizeMode.GrowAndShrink - 1, AutoSizeMode.GrowOnly };
System\Windows\Forms\GroupBoxTests.cs (4)
263[InlineData(AutoSizeMode.GrowAndShrink, 1)] 311[InlineData(AutoSizeMode.GrowAndShrink, 1)] 411[InlineData(AutoSizeMode.GrowAndShrink, 1)] 484[InlineData(AutoSizeMode.GrowAndShrink, 1)]
System\Windows\Forms\MenuStripTests.cs (1)
492Assert.Equal(AutoSizeMode.GrowAndShrink, control.GetAutoSizeMode());
System\Windows\Forms\PanelTests.cs (4)
251[InlineData(AutoSizeMode.GrowAndShrink, 1)] 299[InlineData(AutoSizeMode.GrowAndShrink, 1)] 399[InlineData(AutoSizeMode.GrowAndShrink, 1)] 472[InlineData(AutoSizeMode.GrowAndShrink, 1)]
System\Windows\Forms\RadioButtonTests.cs (1)
618Assert.Equal(AutoSizeMode.GrowAndShrink, control.GetAutoSizeMode());
System\Windows\Forms\StatusStripTests.cs (1)
1077Assert.Equal(AutoSizeMode.GrowAndShrink, control.GetAutoSizeMode());
System\Windows\Forms\ToolStripDropDownTests.cs (1)
3624Assert.Equal(AutoSizeMode.GrowAndShrink, control.GetAutoSizeMode());
System\Windows\Forms\ToolStripTests.cs (1)
4902Assert.Equal(AutoSizeMode.GrowAndShrink, control.GetAutoSizeMode());
System\Windows\Forms\UserControlTests.cs (7)
237[InlineData(AutoSizeMode.GrowAndShrink, 1)] 266[InlineData(AutoSizeMode.GrowAndShrink, 1)] 308[InlineData(AutoSizeMode.GrowAndShrink, 1)] 356[InlineData(AutoSizeMode.GrowAndShrink, 1)] 414[InlineData(AutoSizeMode.GrowAndShrink, 1)] 514[InlineData(AutoSizeMode.GrowAndShrink, 1)] 587[InlineData(AutoSizeMode.GrowAndShrink, 1)]
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
83this.SetAutoSizeMode(AutoSizeMode.GrowAndShrink);
WinFormsControlsTest (5)
MainForm.cs (1)
30AutoSizeMode = AutoSizeMode.GrowAndShrink,
TaskDialogSamples.cs (3)
16AutoSizeMode = AutoSizeMode.GrowAndShrink; 25AutoSizeMode = AutoSizeMode.GrowAndShrink, 35AutoSizeMode = AutoSizeMode.GrowAndShrink,
ToolStripSeparatorPreferredSize.cs (1)
70_buttonChangeOrientation.AutoSizeMode = AutoSizeMode.GrowAndShrink;