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