152 references to AutoScaleMode
Accessibility_Core_App (13)
CommonControl1.Designer.cs (1)
680
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
CommonControl2.Designer.cs (1)
259
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
ContainerControls.Designer.cs (1)
801
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
ContainerControls2.Designer.cs (1)
418
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
DataBindingExample.Designer.cs (1)
272
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
DataControls.Designer.cs (1)
350
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
DialogControls.Designer.cs (1)
83
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
Main.Designer.cs (1)
167
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
Menu_Toolbars_controls.Designer.cs (1)
593
AutoScaleMode =
AutoScaleMode
.Font;
MenuForm.Designer.cs (1)
60
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
PrintingControls.Designer.cs (1)
160
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
RemainingControls.Designer.cs (1)
117
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
ToolStripContainer.Designer.cs (1)
592
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
DesignSurface (1)
MainForm.Designer.cs (1)
295
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
NativeHost.ManagedControl (1)
ManagedControl.Designer.cs (1)
49
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
PresentationUI (11)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (1)
727
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
161
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (1)
217
AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (1)
206
AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (1)
210
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (1)
121
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MS\Internal\Documents\RMPermissions.Designer.cs (1)
183
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
370
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (1)
203
AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MS\Internal\Documents\SigningDialog.Designer.cs (1)
255
AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MS\Internal\Documents\SigningProgress.Designer.cs (1)
56
AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
ScratchProject (1)
Form1.Designer.cs (1)
35
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
ScratchProjectWithInternals (1)
Form1.Designer.cs (1)
35
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
System.Windows.Forms (26)
System\Windows\Forms\Control.cs (1)
11501
bool raiseOnFontChangedEvent = container is null || container.AutoScaleMode !=
AutoScaleMode
.Inherit;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
146
AutoScaleMode =
AutoScaleMode
.Inherit;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
266
AutoScaleMode =
AutoScaleMode
.Font;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
60
AutoScaleMode =
AutoScaleMode
.None; // children may scale, but we won't interfere.
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
41
AutoScaleMode =
AutoScaleMode
.None;
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
332
AutoScaleMode =
AutoScaleMode
.Dpi;
System\Windows\Forms\Form.cs (3)
414
AutoScaleMode =
AutoScaleMode
.None;
4474
if (AutoScaleMode ==
AutoScaleMode
.Font)
4539
if (AutoScaleMode ==
AutoScaleMode
.Dpi)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (15)
40
private
AutoScaleMode
_autoScaleMode =
AutoScaleMode
.Inherit;
168
public
AutoScaleMode
AutoScaleMode
181
if (_autoScaleMode !=
AutoScaleMode
.Inherit)
325
case
AutoScaleMode
.Font:
329
case
AutoScaleMode
.Dpi:
673
|| containerControl.AutoScaleMode ==
AutoScaleMode
.Inherit))
806
if (AutoScaleMode ==
AutoScaleMode
.Dpi)
822
&& AutoScaleMode !=
AutoScaleMode
.None && AutoScaleMode !=
AutoScaleMode
.Inherit
863
if (AutoScaleMode !=
AutoScaleMode
.None && IsHandleCreated)
964
if (AutoScaleMode !=
AutoScaleMode
.None)
973
if (AutoScaleMode ==
AutoScaleMode
.Inherit)
1075
if (AutoScaleMode ==
AutoScaleMode
.Inherit)
1093
if (AutoScaleMode ==
AutoScaleMode
.None)
System\Windows\Forms\MDI\MDIWindowDialog.cs (1)
136
AutoScaleMode =
AutoScaleMode
.Font;
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
73
AutoScaleMode =
AutoScaleMode
.Font;
System.Windows.Forms.Design (19)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (1)
283
AutoScaleMode =
AutoScaleMode
.Font;
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
498
AutoScaleMode =
AutoScaleMode
.Font;
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
161
AutoScaleMode =
AutoScaleMode
.Font;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
454
AutoScaleMode =
AutoScaleMode
.Font;
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
239
AutoScaleMode =
AutoScaleMode
.Font;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
617
AutoScaleMode =
AutoScaleMode
.Font;
System\Windows\Forms\Design\DocumentDesigner.cs (4)
92
private
AutoScaleMode
AutoScaleMode
103
return
AutoScaleMode
.Inherit;
1323
return !_initializing && AutoScaleMode !=
AutoScaleMode
.None && AutoScaleMode !=
AutoScaleMode
.Inherit;
System\Windows\Forms\Design\FormatControl.Designer.cs (1)
174
AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
System\Windows\Forms\Design\FormatStringDialog.cs (1)
202
AutoScaleMode =
AutoScaleMode
.Font;
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (1)
100
AutoScaleMode =
AutoScaleMode
.Font;
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
281
AutoScaleMode =
AutoScaleMode
.Font;
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
122
AutoScaleMode =
AutoScaleMode
.Font;
System\Windows\Forms\Design\StyleEditorForm.cs (3)
403
_absoluteNumericUpDown.AutoScaleMode =
AutoScaleMode
.Font;
436
_percentNumericUpDown.AutoScaleMode =
AutoScaleMode
.Font;
468
AutoScaleMode =
AutoScaleMode
.Font;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
333
AutoScaleMode =
AutoScaleMode
.Font;
System.Windows.Forms.Tests (25)
System\Windows\Forms\ContainerControlTests.cs (16)
30
Assert.Equal(
AutoScaleMode
.Inherit, control.AutoScaleMode);
221
[EnumData<
AutoScaleMode
>]
222
public void ContainerControl_AutoScaleMode_Set_GetReturnsExpected(
AutoScaleMode
value)
239
yield return new object[] {
AutoScaleMode
.None, SizeF.Empty };
240
yield return new object[] {
AutoScaleMode
.Dpi, new SizeF(96, 96) };
241
yield return new object[] {
AutoScaleMode
.Inherit, SizeF.Empty };
246
public void ContainerControl_AutoScaleMode_SetWithCustomOldValue_ResetsAutoScaleDimensions(
AutoScaleMode
value, SizeF expectedAutoScaleDimensions)
251
AutoScaleMode =
AutoScaleMode
.Font
269
[InvalidEnumData<
AutoScaleMode
>]
270
public void ContainerControl_AutoScaleMode_SetInvalid_ThrowsInvalidEnumArgumentException(
AutoScaleMode
value)
429
AutoScaleMode =
AutoScaleMode
.Font
548
[EnumData<
AutoScaleMode
>]
549
public void PerformAutoScale_InvokeWithoutChildren_Success(
AutoScaleMode
autoScaleMode)
559
[EnumData<
AutoScaleMode
>]
560
public void PerformAutoScale_InvokeWithChildren_Success(
AutoScaleMode
autoScaleMode)
697
AutoScaleMode =
AutoScaleMode
.Font
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
35
Assert.Equal(
AutoScaleMode
.Inherit, control.AutoScaleMode);
System\Windows\Forms\DomainUpDownTests.cs (1)
39
_sub.AutoScaleMode.Should().Be(
AutoScaleMode
.Inherit);
System\Windows\Forms\FormTests.cs (3)
33
Assert.Equal(
AutoScaleMode
.Inherit, control.AutoScaleMode);
563
[EnumData<
AutoScaleMode
>]
564
public void Form_AutoScaleMode_Set_GetReturnsExpected(
AutoScaleMode
value)
System\Windows\Forms\PropertyGridTests.cs (1)
35
Assert.Equal(
AutoScaleMode
.Inherit, control.AutoScaleMode);
System\Windows\Forms\ToolStripPanelTests.cs (1)
27
Assert.Equal(
AutoScaleMode
.None, control.AutoScaleMode);
System\Windows\Forms\UpDownBaseTests.cs (1)
25
Assert.Equal(
AutoScaleMode
.Inherit, control.AutoScaleMode);
System\Windows\Forms\UserControlTests.cs (1)
31
Assert.Equal(
AutoScaleMode
.Inherit, control.AutoScaleMode);
System.Windows.Forms.UI.IntegrationTests (11)
Dpi\FormDpiTests.cs (8)
31
form.AutoScaleMode =
AutoScaleMode
.Dpi;
72
form.AutoScaleMode =
AutoScaleMode
.Dpi;
106
form.AutoScaleMode =
AutoScaleMode
.Dpi;
138
form.AutoScaleMode =
AutoScaleMode
.Font;
146
form.AutoScaleMode =
AutoScaleMode
.Dpi;
174
form.AutoScaleMode =
AutoScaleMode
.Font;
206
form.AutoScaleMode =
AutoScaleMode
.Dpi;
234
form.AutoScaleMode =
AutoScaleMode
.Font;
Dpi\SplitContainerTests.cs (1)
58
form.AutoScaleMode =
AutoScaleMode
.Dpi;
Dpi\ToolStripItemTests.Dpi.cs (1)
35
form.AutoScaleMode =
AutoScaleMode
.Dpi;
ImageListTests.cs (1)
111
AutoScaleMode =
AutoScaleMode
.Font
TrimTest (1)
Form1.Designer.cs (1)
99
AutoScaleMode =
AutoScaleMode
.Font;
TrimTestBinaryDeserialization (1)
Form1.Designer.cs (1)
59
AutoScaleMode =
AutoScaleMode
.Font;
WinFormsControlsTest (41)
AnchorLayoutTests.Designer.cs (1)
139
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
Buttons.Designer.cs (1)
45
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Dpi;
Calendar.Designer.cs (1)
233
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
ChartControl.Designer.cs (1)
414
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
ComboBoxes.Designer.cs (1)
267
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Dpi;
ComboBoxesWithScrollBars.Designer.cs (1)
348
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
DataGridViewInVirtualModeTest.Designer.cs (1)
84
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Dpi;
DataGridViewTest.Designer.cs (1)
208
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Dpi;
DateTimePicker.Designer.cs (1)
96
this.AutoScaleMode =
AutoScaleMode
.Font;
DesignTimeAligned.Designer.cs (1)
95
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Dpi;
Dialogs.Designer.cs (1)
149
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
DockLayoutTests.Designer.cs (1)
96
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
DragDrop.Designer.cs (1)
198
AutoScaleMode =
AutoScaleMode
.Font;
ErrorProviderTest.Designer.cs (1)
129
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
FormBorderStyles.Designer.cs (1)
56
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
ListBoxes.Designer.cs (1)
201
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
ListViewTest.Designer.cs (1)
152
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MainForm.Designer.cs (1)
49
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MdiChild.Designer.cs (1)
141
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MdiParent.Designer.cs (1)
39
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MediaPlayer.Designer.cs (1)
54
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MenuStripAndCheckedListBox.Designer.cs (1)
284
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Dpi;
MessageBoxes.Designer.cs (1)
52
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
MultipleControls.Designer.cs (1)
300
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
Panels.Designer.cs (1)
90
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Dpi;
Password.Designer.cs (1)
238
AutoScaleMode =
AutoScaleMode
.Font;
PictureBoxes.Designer.cs (1)
82
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
PropertyGrid.Designer.cs (1)
50
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
RichTextBoxes.Designer.cs (1)
63
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
ScalingBeforeChanges.Designer.cs (1)
50
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Dpi;
ScrollableControls.Designer.cs (1)
437
AutoScaleMode =
AutoScaleMode
.Font;
ScrollBars.Designer.cs (1)
136
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
Splitter.Designer.cs (1)
61
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
TextBoxes.Designer.cs (1)
152
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
ToolStripSeparatorPreferredSize.cs (1)
86
AutoScaleMode =
AutoScaleMode
.Font;
ToolStripTests.Designer.cs (1)
436
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
ToolTipTests.Designer.cs (1)
160
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
TrackBars.Designer.cs (1)
248
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Font;
TreeViewTest.Designer.cs (1)
63
this.AutoScaleMode = System.Windows.Forms.
AutoScaleMode
.Dpi;
UserControls\UserControlWithFontNameEditor.cs (1)
15
AutoScaleMode =
AutoScaleMode
.Font;
UserControls\UserControlWithObjectCollectionEditor.cs (1)
15
AutoScaleMode =
AutoScaleMode
.Font;