47 writes to AutoSizeMode
PresentationUI (6)
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (2)
70
_addButton.
AutoSizeMode
= System.Windows.Forms.AutoSizeMode.GrowAndShrink;
80
_cancelButton.
AutoSizeMode
= System.Windows.Forms.AutoSizeMode.GrowAndShrink;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
212
this.buttonAddUser.
AutoSizeMode
= System.Windows.Forms.AutoSizeMode.GrowAndShrink;
MS\Internal\Documents\SigningDialog.Designer.cs (3)
198
_cancelButton.
AutoSizeMode
= System.Windows.Forms.AutoSizeMode.GrowAndShrink;
212
_signButton.
AutoSizeMode
= System.Windows.Forms.AutoSizeMode.GrowAndShrink;
226
_signSaveAsButton.
AutoSizeMode
= System.Windows.Forms.AutoSizeMode.GrowAndShrink;
System.Windows.Forms.Design (7)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (2)
182
_buttonOK.
AutoSizeMode
= AutoSizeMode.GrowAndShrink;
193
_buttonSave.
AutoSizeMode
= AutoSizeMode.GrowAndShrink;
System\Windows\Forms\Design\StyleEditorForm.cs (5)
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;
System.Windows.Forms.Tests (31)
System\Windows\Forms\ButtonTests.cs (31)
278
control.
AutoSizeMode
= value;
285
control.
AutoSizeMode
= value;
317
control.
AutoSizeMode
= value;
326
control.
AutoSizeMode
= value;
365
control.
AutoSizeMode
= value;
374
control.
AutoSizeMode
= value;
422
control.
AutoSizeMode
= value;
431
control.
AutoSizeMode
= value;
478
control.
AutoSizeMode
= value;
493
control.
AutoSizeMode
= value;
551
control.
AutoSizeMode
= value;
566
control.
AutoSizeMode
= value;
593
AutoSizeMode
= AutoSizeMode.GrowOnly,
600
control.
AutoSizeMode
= AutoSizeMode.GrowAndShrink;
609
Assert.Throws<InvalidEnumArgumentException>("value", () => control.
AutoSizeMode
= value);
692
AutoSizeMode
= AutoSizeMode.GrowAndShrink,
947
AutoSizeMode
= AutoSizeMode.GrowAndShrink,
1202
AutoSizeMode
= autoSizeMode
1251
AutoSizeMode
= autoSizeMode,
1301
AutoSizeMode
= autoSizeMode,
1334
AutoSizeMode
= AutoSizeMode.GrowOnly,
1358
AutoSizeMode
= AutoSizeMode.GrowAndShrink,
1440
AutoSizeMode
= autoSizeMode
1518
AutoSizeMode
= autoSizeMode,
1597
AutoSizeMode
= autoSizeMode,
1630
AutoSizeMode
= AutoSizeMode.GrowOnly,
1654
AutoSizeMode
= AutoSizeMode.GrowAndShrink,
1678
AutoSizeMode
= AutoSizeMode.GrowOnly,
1702
AutoSizeMode
= AutoSizeMode.GrowAndShrink,
1726
AutoSizeMode
= AutoSizeMode.GrowOnly,
1750
AutoSizeMode
= AutoSizeMode.GrowAndShrink,
WinFormsControlsTest (3)
MainForm.cs (1)
30
AutoSizeMode
= AutoSizeMode.GrowAndShrink,
TaskDialogSamples.cs (1)
35
AutoSizeMode
= AutoSizeMode.GrowAndShrink,
ToolStripSeparatorPreferredSize.cs (1)
70
_buttonChangeOrientation.
AutoSizeMode
= AutoSizeMode.GrowAndShrink;
15 references to AutoSizeMode
System.Windows.Forms (2)
System\Windows\Forms\Controls\Buttons\Button.cs (2)
89
return
AutoSizeMode
== AutoSizeMode.GrowAndShrink ? preferredSize : LayoutUtils.UnionSizes(preferredSize, Size);
107
return
AutoSizeMode
== AutoSizeMode.GrowAndShrink ? paddedSize : LayoutUtils.UnionSizes(paddedSize, Size);
System.Windows.Forms.Tests (13)
System\Windows\Forms\ButtonTests.cs (13)
30
Assert.Equal(AutoSizeMode.GrowOnly, control.
AutoSizeMode
);
279
Assert.Equal(value, control.
AutoSizeMode
);
286
Assert.Equal(value, control.
AutoSizeMode
);
318
Assert.Equal(value, control.
AutoSizeMode
);
327
Assert.Equal(value, control.
AutoSizeMode
);
366
Assert.Equal(value, control.
AutoSizeMode
);
375
Assert.Equal(value, control.
AutoSizeMode
);
423
Assert.Equal(value, control.
AutoSizeMode
);
432
Assert.Equal(value, control.
AutoSizeMode
);
479
Assert.Equal(value, control.
AutoSizeMode
);
494
Assert.Equal(value, control.
AutoSizeMode
);
552
Assert.Equal(value, control.
AutoSizeMode
);
567
Assert.Equal(value, control.
AutoSizeMode
);