16 overrides of AutoSize
System.Windows.Forms (15)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
122public override bool AutoSize
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
859public override bool AutoSize
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
59public override bool AutoSize
System\Windows\Forms\Controls\Labels\Label.cs (1)
99public override bool AutoSize
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
243public override bool AutoSize
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
189public override bool AutoSize
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
100public override bool AutoSize
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
72public override bool AutoSize
System\Windows\Forms\Controls\Unsupported\ToolBar\ToolBar.cs (1)
45public override bool AutoSize
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
108public override bool AutoSize
System\Windows\Forms\Form.cs (1)
489public override bool AutoSize
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
181public override bool AutoSize
System\Windows\Forms\Panels\Panel.cs (1)
41public override bool AutoSize
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
51public override bool AutoSize
System\Windows\Forms\UserControl.cs (1)
43public override bool AutoSize
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
139public override bool AutoSize
41 writes to AutoSize
System.Windows.Forms (14)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
127base.AutoSize = value;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
864base.AutoSize = value;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
62set => base.AutoSize = value;
System\Windows\Forms\Controls\Labels\Label.cs (1)
106base.AutoSize = value;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
833AutoSize = true; 839AutoSize = false;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
142AutoSize = true
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
204base.AutoSize = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
103set => base.AutoSize = value;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
111set => base.AutoSize = value;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
184set => base.AutoSize = value;
System\Windows\Forms\Panels\Panel.cs (1)
44set => base.AutoSize = value;
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
54set => base.AutoSize = value;
System\Windows\Forms\UserControl.cs (1)
46set => base.AutoSize = value;
System.Windows.Forms.Design.Tests (2)
ControlDesignerTests.cs (2)
263_designer._control.AutoSize = false; 290_designer._control.AutoSize = false;
System.Windows.Forms.Tests (23)
System\Windows\Forms\ControlTests.Properties.cs (20)
925control.AutoSize = value; 931control.AutoSize = value; 937control.AutoSize = !value; 968control.AutoSize = value; 976control.AutoSize = value; 984control.AutoSize = !value; 1030control.AutoSize = value; 1039control.AutoSize = value; 1048control.AutoSize = !value; 1077control.AutoSize = value; 1086control.AutoSize = value; 1095control.AutoSize = !value; 1142control.AutoSize = value; 1156control.AutoSize = value; 1170control.AutoSize = !value; 1194AutoSize = true 1206control.AutoSize = false; 1211control.AutoSize = false; 1216control.AutoSize = true; 1222control.AutoSize = false;
System\Windows\Forms\ListBoxTests.cs (3)
892AutoSize = autoSize, 933AutoSize = autoSize, 993AutoSize = autoSize,
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (1)
147base.AutoSize = value;
System\Windows\Integration\WindowsFormsHost.cs (1)
331Child.AutoSize = false;
69 references to AutoSize
System.Windows.Forms (19)
System\Windows\Forms\Control.cs (2)
685if (value == AutoSize) 3472LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.UseCompatibleTextRendering);
System\Windows\Forms\Controls\Buttons\Button.cs (1)
43/// Allows the control to optionally shrink when <see cref="Control.AutoSize"/> is <see langword="true"/>.
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
124get => base.AutoSize;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
61get => base.AutoSize;
System\Windows\Forms\Controls\Labels\Label.cs (1)
101get => base.AutoSize;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
417LayoutTransaction.DoLayoutIf(AutoSize, ParentInternal, this, PropertyNames.DrawMode);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
423LayoutTransaction.DoLayoutIf(AutoSize, this, this, PropertyNames.Image);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
191get => base.AutoSize; 194if (IsInToolStripPanel && base.AutoSize && !value)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (2)
102get => base.AutoSize; 638if (controlArray[i].AutoSize)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
110get => base.AutoSize;
System\Windows\Forms\Layout\CommonProperties.cs (1)
62/// A control can thwart the layout engine by overriding its virtual <see cref="Control.AutoSize"/>
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
183get => base.AutoSize;
System\Windows\Forms\Panels\Panel.cs (1)
43get => base.AutoSize;
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2571if (control.AutoSize)
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
53get => base.AutoSize;
System\Windows\Forms\UserControl.cs (1)
45get => base.AutoSize;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
506(control.AutoSize) &&
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (1)
85if (child.AutoSize)
System.Windows.Forms.Tests (47)
System\Windows\Forms\AxHostTests.cs (2)
38Assert.False(control.AutoSize); 132Assert.False(control.AutoSize);
System\Windows\Forms\ComboBoxTests.cs (1)
35Assert.False(control.AutoSize);
System\Windows\Forms\ContainerControlTests.cs (2)
35Assert.False(control.AutoSize); 334Assert.False(control.AutoSize);
System\Windows\Forms\ControlTests.cs (5)
25Assert.False(control.AutoSize); 114Assert.False(control.AutoSize); 210Assert.False(control.AutoSize); 306Assert.False(control.AutoSize); 402Assert.False(control.AutoSize);
System\Windows\Forms\ControlTests.Properties.cs (19)
926Assert.Equal(value, control.AutoSize); 932Assert.Equal(value, control.AutoSize); 938Assert.Equal(!value, control.AutoSize); 969Assert.Equal(value, control.AutoSize); 977Assert.Equal(value, control.AutoSize); 985Assert.Equal(!value, control.AutoSize); 1031Assert.Equal(value, control.AutoSize); 1040Assert.Equal(value, control.AutoSize); 1049Assert.Equal(!value, control.AutoSize); 1078Assert.Equal(value, control.AutoSize); 1087Assert.Equal(value, control.AutoSize); 1096Assert.Equal(!value, control.AutoSize); 1143Assert.Equal(value, control.AutoSize); 1157Assert.Equal(value, control.AutoSize); 1171Assert.Equal(!value, control.AutoSize); 1207Assert.False(control.AutoSize); 1212Assert.False(control.AutoSize); 1217Assert.True(control.AutoSize); 1223Assert.False(control.AutoSize);
System\Windows\Forms\DateTimePickerTests.cs (1)
32Assert.False(control.AutoSize);
System\Windows\Forms\ListBoxTests.cs (1)
28Assert.False(control.AutoSize);
System\Windows\Forms\ListControlTests.cs (1)
29Assert.False(control.AutoSize);
System\Windows\Forms\ListViewTests.cs (1)
34Assert.False(control.AutoSize);
System\Windows\Forms\MdiClientTests.cs (1)
27Assert.False(control.AutoSize);
System\Windows\Forms\MonthCalendarTests.cs (1)
31Assert.False(control.AutoSize);
System\Windows\Forms\PictureBoxTests.cs (5)
30Assert.False(control.AutoSize); 1297Assert.Equal(expectedAutoSize, pictureBox.AutoSize); 1303Assert.Equal(expectedAutoSize, pictureBox.AutoSize); 1316Assert.Equal(expectedAutoSize, pictureBox.AutoSize); 1322Assert.Equal(expectedAutoSize, pictureBox.AutoSize);
System\Windows\Forms\ProgressBarTests.cs (1)
27Assert.False(control.AutoSize);
System\Windows\Forms\PropertyGridTests.cs (1)
40Assert.False(control.AutoSize);
System\Windows\Forms\ScrollableControlTests.cs (1)
31Assert.False(control.AutoSize);
System\Windows\Forms\SplitterTests.cs (1)
26Assert.False(control.AutoSize);
System\Windows\Forms\TabControlTests.cs (1)
29Assert.False(control.AutoSize);
System\Windows\Forms\TreeViewTests.cs (1)
26Assert.False(control.AutoSize);
System\Windows\Forms\WebBrowserTests.cs (1)
27Assert.False(control.AutoSize);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
143return base.AutoSize;