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