621 references to AutoSizeMode
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 (36)
System\Windows\Forms\Control.cs (2)
657protected void SetAutoSizeMode(AutoSizeMode mode) => CommonProperties.SetAutoSizeMode(this, mode); 659protected AutoSizeMode GetAutoSizeMode() => CommonProperties.GetAutoSizeMode(this);
System\Windows\Forms\Controls\Buttons\Button.cs (4)
47[DefaultValue(AutoSizeMode.GrowOnly)] 50public AutoSizeMode AutoSizeMode 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\GroupBox\GroupBox.cs (2)
81[DefaultValue(AutoSizeMode.GrowOnly)] 83public AutoSizeMode AutoSizeMode
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (3)
207AutoSizeMode = AutoSizeMode.GrowOnly, 228AutoSizeMode = AutoSizeMode.GrowAndShrink, 267AutoSizeMode = AutoSizeMode.GrowAndShrink;
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
62public override AutoSizeMode AutoSizeMode 64get => AutoSizeMode.GrowOnly;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
152SetAutoSizeMode(AutoSizeMode.GrowAndShrink);
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (2)
37public override AutoSizeMode AutoSizeMode 41return AutoSizeMode.GrowOnly;
System\Windows\Forms\Form.cs (4)
531[DefaultValue(AutoSizeMode.GrowOnly)] 533public AutoSizeMode AutoSizeMode 4208Size adjustedSize = AutoSizeMode == AutoSizeMode.GrowAndShrink ? prefSize : LayoutUtils.UnionSizes(prefSize, Size); 6924if (AutoSizeMode == AutoSizeMode.GrowAndShrink)
System\Windows\Forms\Layout\CommonProperties.cs (5)
412internal static AutoSizeMode GetAutoSizeMode(IArrangedElement element) 415return state[s_autoSizeModeSection] == 0 ? AutoSizeMode.GrowOnly : AutoSizeMode.GrowAndShrink; 489internal static void SetAutoSizeMode(IArrangedElement element, AutoSizeMode mode) 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\Panels\Panel.cs (2)
67[DefaultValue(AutoSizeMode.GrowOnly)] 69public virtual AutoSizeMode AutoSizeMode
System\Windows\Forms\Panels\SplitterPanel.cs (2)
55public override AutoSizeMode AutoSizeMode 57get => AutoSizeMode.GrowOnly;
System\Windows\Forms\UserControl.cs (2)
66[DefaultValue(AutoSizeMode.GrowOnly)] 68public AutoSizeMode AutoSizeMode
System.Windows.Forms.Design (21)
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\ControlDesigner.cs (3)
323AutoSizeMode mode = (AutoSizeMode)autoSizeModeProp.GetValue(component)!; 324growOnly = mode == AutoSizeMode.GrowOnly;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
297_overarchingTableLayoutPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink; 457AutoSizeMode = AutoSizeMode.GrowAndShrink;
System\Windows\Forms\Design\DocumentDesigner.cs (4)
531AutoSizeMode mode = AutoSizeMode.GrowOnly; 535mode = (AutoSizeMode)prop.GetValue(Component); 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.Design.Tests (3)
System\ComponentModel\Design\ByteViewerTests.cs (3)
28Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 156Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 1074public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System.Windows.Forms.Tests (504)
System\Windows\Forms\ButtonBaseTests.cs (2)
4990Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 9333public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\ButtonTests.cs (255)
30Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 271[EnumData<AutoSizeMode>] 272public void Button_AutoSizeMode_Set_GetReturnsExpected(AutoSizeMode value) 293[InlineData(AutoSizeMode.GrowAndShrink, 1)] 294[InlineData(AutoSizeMode.GrowOnly, 0)] 295public void Button_AutoSizeMode_SetWithParent_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 341[InlineData(AutoSizeMode.GrowAndShrink, 1)] 342[InlineData(AutoSizeMode.GrowOnly, 0)] 343public void Button_AutoSizeMode_SetWithCustomLayoutEngineParent_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 410[EnumData<AutoSizeMode>] 411public void Button_AutoSizeMode_SetWithHandle_GetReturnsExpected(AutoSizeMode value) 441[InlineData(AutoSizeMode.GrowAndShrink, 1)] 442[InlineData(AutoSizeMode.GrowOnly, 0)] 443public void Button_AutoSizeMode_SetWithParentWithHandle_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 514[InlineData(AutoSizeMode.GrowAndShrink, 1)] 515[InlineData(AutoSizeMode.GrowOnly, 0)] 516public void Button_AutoSizeMode_SetWithCustomLayoutEngineParentWithHandle_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 593AutoSizeMode = AutoSizeMode.GrowOnly, 600control.AutoSizeMode = AutoSizeMode.GrowAndShrink; 605[InvalidEnumData<AutoSizeMode>] 606public void Button_AutoSizeMode_SetInvalid_ThrowsInvalidEnumArgumentException(AutoSizeMode value) 692AutoSizeMode = AutoSizeMode.GrowAndShrink, 947AutoSizeMode = AutoSizeMode.GrowAndShrink, 1162Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 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) }; 1180yield return new object[] { AutoSizeMode.GrowOnly, Size.Empty, new Size(75, 23) }; 1181yield return new object[] { AutoSizeMode.GrowOnly, new Size(-1, -2), new Size(75, 23) }; 1182yield return new object[] { AutoSizeMode.GrowOnly, new Size(-2, -1), new Size(75, 23) }; 1183yield return new object[] { AutoSizeMode.GrowOnly, new Size(-1, -1), new Size(75, 23) }; 1184yield return new object[] { AutoSizeMode.GrowOnly, new Size(1, 2), new Size(75, 23) }; 1185yield return new object[] { AutoSizeMode.GrowOnly, new Size(2, 1), new Size(75, 23) }; 1186yield return new object[] { AutoSizeMode.GrowOnly, new Size(1, 1), new Size(75, 23) }; 1187yield return new object[] { AutoSizeMode.GrowOnly, new Size(10, 20), new Size(75, 23) }; 1188yield return new object[] { AutoSizeMode.GrowOnly, new Size(30, 40), new Size(75, 23) }; 1189yield return new object[] { AutoSizeMode.GrowOnly, new Size(30, int.MaxValue), new Size(75, 23) }; 1190yield return new object[] { AutoSizeMode.GrowOnly, new Size(int.MaxValue, 40), new Size(75, 23) }; 1191yield return new object[] { AutoSizeMode.GrowOnly, new Size(int.MaxValue, int.MaxValue), new Size(75, 23) }; 1197public void Button_GetPreferredSize_InvokeSystem_ReturnsExpected(AutoSizeMode autoSizeMode, Size proposedSize, Size expected) 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) }; 1229yield return new object[] { AutoSizeMode.GrowOnly, Size.Empty, new Size(75, 23) }; 1230yield return new object[] { AutoSizeMode.GrowOnly, new Size(-1, -2), new Size(75, 23) }; 1231yield return new object[] { AutoSizeMode.GrowOnly, new Size(-2, -1), new Size(75, 23) }; 1232yield return new object[] { AutoSizeMode.GrowOnly, new Size(-1, -1), new Size(75, 23) }; 1233yield return new object[] { AutoSizeMode.GrowOnly, new Size(1, 2), new Size(75, 23) }; 1234yield return new object[] { AutoSizeMode.GrowOnly, new Size(2, 1), new Size(75, 23) }; 1235yield return new object[] { AutoSizeMode.GrowOnly, new Size(1, 1), new Size(75, 23) }; 1236yield return new object[] { AutoSizeMode.GrowOnly, new Size(10, 20), new Size(75, 23) }; 1237yield return new object[] { AutoSizeMode.GrowOnly, new Size(30, 40), new Size(75, 23) }; 1238yield return new object[] { AutoSizeMode.GrowOnly, new Size(30, int.MaxValue), new Size(75, 23) }; 1239yield return new object[] { AutoSizeMode.GrowOnly, new Size(int.MaxValue, 40), new Size(75, 23) }; 1240yield return new object[] { AutoSizeMode.GrowOnly, new Size(int.MaxValue, int.MaxValue), new Size(75, 23) }; 1246public void Button_GetPreferredSize_InvokeSystemWithPadding_ReturnsExpected(AutoSizeMode autoSizeMode, Size proposedSize, Size expected) 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) }; 1279yield return new object[] { AutoSizeMode.GrowOnly, Size.Empty, new Size(18, 15) }; 1280yield return new object[] { AutoSizeMode.GrowOnly, new Size(-1, -2), new Size(18, 15) }; 1281yield return new object[] { AutoSizeMode.GrowOnly, new Size(-2, -1), new Size(18, 15) }; 1282yield return new object[] { AutoSizeMode.GrowOnly, new Size(-1, -1), new Size(18, 15) }; 1283yield return new object[] { AutoSizeMode.GrowOnly, new Size(1, 2), new Size(18, 15) }; 1284yield return new object[] { AutoSizeMode.GrowOnly, new Size(2, 1), new Size(18, 15) }; 1285yield return new object[] { AutoSizeMode.GrowOnly, new Size(1, 1), new Size(18, 15) }; 1286yield return new object[] { AutoSizeMode.GrowOnly, new Size(10, 20), new Size(18, 15) }; 1287yield return new object[] { AutoSizeMode.GrowOnly, new Size(30, 40), new Size(18, 15) }; 1288yield return new object[] { AutoSizeMode.GrowOnly, new Size(30, int.MaxValue), new Size(18, 15) }; 1289yield return new object[] { AutoSizeMode.GrowOnly, new Size(int.MaxValue, 40), new Size(18, 15) }; 1290yield return new object[] { AutoSizeMode.GrowOnly, new Size(int.MaxValue, int.MaxValue), new Size(18, 15) }; 1296public void Button_GetPreferredSize_InvokeSystemWithPaddingSmallSize_ReturnsExpected(AutoSizeMode autoSizeMode, Size proposedSize, Size expected) 1334AutoSizeMode = AutoSizeMode.GrowOnly, 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) }; 1417yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.Empty, new Size(75, 23) }; 1418yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(-1, -2), new Size(75, 23) }; 1419yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(-2, -1), new Size(75, 23) }; 1420yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(-1, -1), new Size(75, 23) }; 1421yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(1, 2), new Size(75, 23) }; 1422yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(2, 1), new Size(75, 23) }; 1423yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(1, 1), new Size(75, 23) }; 1424yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(10, 20), new Size(75, 23) }; 1425yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(30, 40), new Size(75, 23) }; 1426yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(30, int.MaxValue), new Size(75, 23) }; 1427yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(int.MaxValue, 40), new Size(75, 23) }; 1428yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(int.MaxValue, int.MaxValue), new Size(75, 23) }; 1435public void Button_GetPreferredSize_InvokeFlat_ReturnsExpected(FlatStyle flatStyle, AutoSizeMode autoSizeMode, Size proposedSize, Size expected) 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) }; 1495yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.Empty, new Size(75, 23) }; 1496yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(-1, -2), new Size(75, 23) }; 1497yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(-2, -1), new Size(75, 23) }; 1498yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(-1, -1), new Size(75, 23) }; 1499yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(1, 2), new Size(75, 23) }; 1500yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(2, 1), new Size(75, 23) }; 1501yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(1, 1), new Size(75, 23) }; 1502yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(10, 20), new Size(75, 23) }; 1503yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(30, 40), new Size(75, 23) }; 1504yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(30, int.MaxValue), new Size(75, 23) }; 1505yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(int.MaxValue, 40), new Size(75, 23) }; 1506yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(int.MaxValue, int.MaxValue), new Size(75, 23) }; 1513public void Button_GetPreferredSize_InvokeFlatWithPadding_ReturnsExpected(FlatStyle flatStyle, AutoSizeMode autoSizeMode, Size proposedSize, Size expected) 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) }; 1546yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, Size.Empty, new Size(12, 14) }; 1547yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(-1, -2), new Size(12, 14) }; 1548yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(-2, -1), new Size(12, 14) }; 1549yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(-1, -1), new Size(12, 14) }; 1550yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(1, 2), new Size(12, 14) }; 1551yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(2, 1), new Size(12, 14) }; 1552yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(1, 1), new Size(12, 14) }; 1553yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(10, 20), new Size(12, 14) }; 1554yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(30, 40), new Size(12, 14) }; 1555yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(30, int.MaxValue), new Size(12, 14) }; 1556yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(int.MaxValue, 40), new Size(12, 14) }; 1557yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, 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) }; 1574yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.Empty, new Size(10, 12) }; 1575yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(-1, -2), new Size(10, 12) }; 1576yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(-2, -1), new Size(10, 12) }; 1577yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(-1, -1), new Size(10, 12) }; 1578yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(1, 2), new Size(10, 12) }; 1579yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(2, 1), new Size(10, 12) }; 1580yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(1, 1), new Size(10, 12) }; 1581yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(10, 20), new Size(10, 12) }; 1582yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(30, 40), new Size(10, 12) }; 1583yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(30, int.MaxValue), new Size(10, 12) }; 1584yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(int.MaxValue, 40), new Size(10, 12) }; 1585yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, new Size(int.MaxValue, int.MaxValue), new Size(10, 12) }; 1592public void Button_GetPreferredSize_InvokeFlatWithPaddingSmallSize_ReturnsExpected(FlatStyle flatStyle, AutoSizeMode autoSizeMode, Size proposedSize, Size expected) 1630AutoSizeMode = AutoSizeMode.GrowOnly, 1654AutoSizeMode = AutoSizeMode.GrowAndShrink, 1678AutoSizeMode = AutoSizeMode.GrowOnly, 1702AutoSizeMode = AutoSizeMode.GrowAndShrink, 1726AutoSizeMode = AutoSizeMode.GrowOnly, 1750AutoSizeMode = AutoSizeMode.GrowAndShrink, 3739public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\CheckBoxTests.cs (2)
491Assert.Equal(AutoSizeMode.GrowAndShrink, control.GetAutoSizeMode()); 692public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\ComboBoxTests.cs (2)
1449Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 2892public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\ContainerControlTests.cs (2)
492Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 1481public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\ControlTests.cs (2)
1212public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode(); 1424public new void SetAutoSizeMode(AutoSizeMode mode) => base.SetAutoSizeMode(mode);
System\Windows\Forms\ControlTests.Methods.cs (16)
2103Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 2106Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 7281yield return new object[] { AutoSizeMode.GrowOnly, AutoSizeMode.GrowOnly }; 7282yield return new object[] { AutoSizeMode.GrowAndShrink, AutoSizeMode.GrowAndShrink }; 7283yield return new object[] { AutoSizeMode.GrowAndShrink - 1, AutoSizeMode.GrowOnly }; 7284yield return new object[] { AutoSizeMode.GrowOnly + 1, AutoSizeMode.GrowOnly }; 7289public void Control_SetAutoSizeMode_Invoke_GetAutoSizeModeReturnsExpected(AutoSizeMode mode, AutoSizeMode expected) 7304public void Control_SetAutoSizeMode_InvokeWithParent_GetAutoSizeModeReturnsExpected(AutoSizeMode mode, AutoSizeMode expected) 7328public void Control_SetAutoSizeMode_InvokeWithHandle_GetAutoSizeModeReturnsExpected(AutoSizeMode mode, AutoSizeMode expected)
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
1073Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 2162public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\DateTimePickerTests.cs (2)
150Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 1060public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\Design\ComponentEditorFormTests.cs (3)
41Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 194Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 450public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\Design\ComponentEditorPageTests.cs (3)
29Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 643Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 977public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\DomainUpDownTests.cs (2)
1046_sub.GetAutoSizeMode().Should().Be(AutoSizeMode.GrowOnly); 1544public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\FlowLayoutPanelTests.cs (3)
28Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 244Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 496public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\FormTests.cs (3)
39Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 2410Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 2760public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\GroupBoxTests.cs (21)
26Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 241[EnumData<AutoSizeMode>] 242public void GroupBox_AutoSizeMode_Set_GetReturnsExpected(AutoSizeMode value) 263[InlineData(AutoSizeMode.GrowAndShrink, 1)] 264[InlineData(AutoSizeMode.GrowOnly, 0)] 265public void GroupBox_AutoSizeMode_SetWithParent_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 311[InlineData(AutoSizeMode.GrowAndShrink, 1)] 312[InlineData(AutoSizeMode.GrowOnly, 0)] 313public void GroupBox_AutoSizeMode_SetWithCustomLayoutEngineParent_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 380[EnumData<AutoSizeMode>] 381public void GroupBox_AutoSizeMode_SetWithHandle_GetReturnsExpected(AutoSizeMode value) 411[InlineData(AutoSizeMode.GrowAndShrink, 1)] 412[InlineData(AutoSizeMode.GrowOnly, 0)] 413public void GroupBox_AutoSizeMode_SetWithParentWithHandle_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 484[InlineData(AutoSizeMode.GrowAndShrink, 1)] 485[InlineData(AutoSizeMode.GrowOnly, 0)] 486public void GroupBox_AutoSizeMode_SetWithCustomLayoutEngineParentWithHandle_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 557[InvalidEnumData<AutoSizeMode>] 558public void GroupBox_AutoSizeMode_SetInvalid_ThrowsInvalidEnumArgumentException(AutoSizeMode value) 1409Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 2351public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\HScrollBarTests.cs (2)
204Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 298public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\LabelTests.cs (2)
141Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 941public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\ListBoxTests.cs (2)
4783Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 6464public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\ListControlTests.cs (2)
2558Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 2964public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\ListViewTests.cs (2)
4077Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 6151public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\MdiControlStripTests.cs (1)
436public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\MenuStripTests.cs (2)
492Assert.Equal(AutoSizeMode.GrowAndShrink, control.GetAutoSizeMode()); 932public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\MonthCalendarTests.cs (2)
3319Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 4784public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\PanelTests.cs (21)
29Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 229[EnumData<AutoSizeMode>] 230public void Panel_AutoSizeMode_Set_GetReturnsExpected(AutoSizeMode value) 251[InlineData(AutoSizeMode.GrowAndShrink, 1)] 252[InlineData(AutoSizeMode.GrowOnly, 0)] 253public void Panel_AutoSizeMode_SetWithParent_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 299[InlineData(AutoSizeMode.GrowAndShrink, 1)] 300[InlineData(AutoSizeMode.GrowOnly, 0)] 301public void Panel_AutoSizeMode_SetWithCustomLayoutEngineParent_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 368[EnumData<AutoSizeMode>] 369public void Panel_AutoSizeMode_SetWithHandle_GetReturnsExpected(AutoSizeMode value) 399[InlineData(AutoSizeMode.GrowAndShrink, 1)] 400[InlineData(AutoSizeMode.GrowOnly, 0)] 401public void Panel_AutoSizeMode_SetWithParentWithHandle_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 472[InlineData(AutoSizeMode.GrowAndShrink, 1)] 473[InlineData(AutoSizeMode.GrowOnly, 0)] 474public void Panel_AutoSizeMode_SetWithCustomLayoutEngineParentWithHandle_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 545[InvalidEnumData<AutoSizeMode>] 546public void Panel_AutoSizeMode_SetInvalid_ThrowsInvalidEnumArgumentException(AutoSizeMode value) 833Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 1218public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\PictureBoxTests.cs (2)
1864Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 2892public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\ProgressBarTests.cs (2)
1793Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 2642public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\PropertyGridTests.cs (2)
3454Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 4221public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\RadioButtonTests.cs (2)
618Assert.Equal(AutoSizeMode.GrowAndShrink, control.GetAutoSizeMode()); 1591public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\RichTextBoxTests.cs (2)
8810Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 10976public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\ScrollableControlTests.cs (2)
1330Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 2638public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\ScrollBarTests.cs (2)
1761Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 3212public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\SplitterPanelTests.cs (21)
35Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 189[EnumData<AutoSizeMode>] 190[InvalidEnumData<AutoSizeMode>] 191public void SplitterPanel_AutoSizeMode_Set_GetReturnsExpected(AutoSizeMode value) 198Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 204Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 210[EnumData<AutoSizeMode>] 211[InvalidEnumData<AutoSizeMode>] 212public void SplitterPanel_AutoSizeMode_SetWithParent_GetReturnsExpected(AutoSizeMode value) 225Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 233Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 241[EnumData<AutoSizeMode>] 242[InvalidEnumData<AutoSizeMode>] 243public void SplitterPanel_AutoSizeMode_SetWithHandle_GetReturnsExpected(AutoSizeMode value) 255Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 263Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 271[EnumData<AutoSizeMode>] 272[InvalidEnumData<AutoSizeMode>] 273public void SplitterPanel_AutoSizeMode_SetWithHandleWithParent_GetReturnsExpected(AutoSizeMode value) 299Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 313Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode);
System\Windows\Forms\SplitterTests.cs (2)
1636Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 2357public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\StatusStripTests.cs (2)
1077Assert.Equal(AutoSizeMode.GrowAndShrink, control.GetAutoSizeMode()); 1352public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\TabControlTests.cs (2)
3826Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 5779public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\TableLayoutPanelTests.cs (3)
30Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 640Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 2237public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\TabPageTests.cs (32)
33Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 142Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 381[EnumData<AutoSizeMode>] 382[InvalidEnumData<AutoSizeMode>] 383public void TabPage_AutoSizeMode_Set_GetReturnsExpected(AutoSizeMode value) 390Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 391Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 397Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 398Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 404[EnumData<AutoSizeMode>] 405[InvalidEnumData<AutoSizeMode>] 406public void TabPage_AutoSizeMode_SetWithParent_GetReturnsExpected(AutoSizeMode value) 419Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 420Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 428Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 429Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 437[EnumData<AutoSizeMode>] 438[InvalidEnumData<AutoSizeMode>] 439public void TabPage_AutoSizeMode_SetWithHandle_GetReturnsExpected(AutoSizeMode value) 451Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 452Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 460Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 461Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 469[EnumData<AutoSizeMode>] 470[InvalidEnumData<AutoSizeMode>] 471public void TabPage_AutoSizeMode_SetWithHandleWithParent_GetReturnsExpected(AutoSizeMode value) 497Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 498Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 512Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 513Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 3755Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 5301public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\ToolStripContentPanelTests.cs (23)
31Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 469[EnumData<AutoSizeMode>] 470[InvalidEnumData<AutoSizeMode>] 471public void ToolStripContentPanel_AutoSizeMode_Set_GetReturnsExpected(AutoSizeMode value) 478Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 484Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 490[EnumData<AutoSizeMode>] 491[InvalidEnumData<AutoSizeMode>] 492public void ToolStripContentPanel_AutoSizeMode_SetWithParent_GetReturnsExpected(AutoSizeMode value) 505Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 513Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 521[EnumData<AutoSizeMode>] 522[InvalidEnumData<AutoSizeMode>] 523public void ToolStripContentPanel_AutoSizeMode_SetWithHandle_GetReturnsExpected(AutoSizeMode value) 535Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 543Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 551[EnumData<AutoSizeMode>] 552[InvalidEnumData<AutoSizeMode>] 553public void ToolStripContentPanel_AutoSizeMode_SetWithHandleWithParent_GetReturnsExpected(AutoSizeMode value) 579Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 593Assert.Equal(AutoSizeMode.GrowOnly, control.AutoSizeMode); 1653Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 2080public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\ToolStripDropDownTests.cs (2)
3624Assert.Equal(AutoSizeMode.GrowAndShrink, control.GetAutoSizeMode()); 5178public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\ToolStripPanelTests.cs (2)
302Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 423public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\ToolStripTests.cs (2)
4902Assert.Equal(AutoSizeMode.GrowAndShrink, control.GetAutoSizeMode()); 7610public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\TreeViewTests.cs (2)
4752Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 7624public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\UpDownBaseTests.cs (2)
1574Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 3180public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\UserControlTests.cs (27)
237[InlineData(AutoSizeMode.GrowAndShrink, 1)] 238[InlineData(AutoSizeMode.GrowOnly, 0)] 239public void UserControl_AutoSizeMode_Set_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 266[InlineData(AutoSizeMode.GrowAndShrink, 1)] 267[InlineData(AutoSizeMode.GrowOnly, 0)] 268public void UserControl_AutoSizeMode_SetDesignMode_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 308[InlineData(AutoSizeMode.GrowAndShrink, 1)] 309[InlineData(AutoSizeMode.GrowOnly, 0)] 310public void UserControl_AutoSizeMode_SetWithParent_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 356[InlineData(AutoSizeMode.GrowAndShrink, 1)] 357[InlineData(AutoSizeMode.GrowOnly, 0)] 358public void UserControl_AutoSizeMode_SetDesignModeWithParent_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 414[InlineData(AutoSizeMode.GrowAndShrink, 1)] 415[InlineData(AutoSizeMode.GrowOnly, 0)] 416public void UserControl_AutoSizeMode_SetWithCustomLayoutEngineParent_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 483[EnumData<AutoSizeMode>] 484public void UserControl_AutoSizeMode_SetWithHandle_GetReturnsExpected(AutoSizeMode value) 514[InlineData(AutoSizeMode.GrowAndShrink, 1)] 515[InlineData(AutoSizeMode.GrowOnly, 0)] 516public void UserControl_AutoSizeMode_SetWithParentWithHandle_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 587[InlineData(AutoSizeMode.GrowAndShrink, 1)] 588[InlineData(AutoSizeMode.GrowOnly, 0)] 589public void UserControl_AutoSizeMode_SetWithCustomLayoutEngineParentWithHandle_GetReturnsExpected(AutoSizeMode value, int expectedLayoutCallCount) 660[InvalidEnumData<AutoSizeMode>] 661public void UserControl_AutoSizeMode_SetInvalid_ThrowsInvalidEnumArgumentException(AutoSizeMode value) 877Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 1861public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\VScrollBarTests.cs (2)
194Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 288public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
System\Windows\Forms\WebBrowserTests.cs (2)
2811Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 4726public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
TextBoxBaseTests.cs (2)
4241Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 7737public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
TextBoxTests.cs (2)
490Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 739public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
TrackBarTests.cs (2)
2268Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 3332public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
WebBrowserBaseTests.cs (2)
759Assert.Equal(AutoSizeMode.GrowOnly, control.GetAutoSizeMode()); 944public new AutoSizeMode GetAutoSizeMode() => base.GetAutoSizeMode();
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)
69_buttonChangeOrientation.AutoSizeMode = AutoSizeMode.GrowAndShrink;