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