15 overrides of AutoSize
System.Windows.Forms (14)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
124public override bool AutoSize
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
863public override bool AutoSize
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
59public override bool AutoSize
System\Windows\Forms\Controls\Labels\Label.cs (1)
103public override bool AutoSize
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
247public override bool AutoSize
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
190public override bool AutoSize
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
100public override bool AutoSize
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
76public override bool AutoSize
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
112public override bool AutoSize
System\Windows\Forms\Form.cs (1)
492public override bool AutoSize
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
181public override bool AutoSize
System\Windows\Forms\Panels\Panel.cs (1)
45public override bool AutoSize
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
60public override bool AutoSize
System\Windows\Forms\UserControl.cs (1)
43public override bool AutoSize
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
140public override bool AutoSize
41 writes to AutoSize
System.Windows.Forms (14)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
129base.AutoSize = value;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
868base.AutoSize = value;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
62set => base.AutoSize = value;
System\Windows\Forms\Controls\Labels\Label.cs (1)
110base.AutoSize = value;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
835AutoSize = true; 841AutoSize = false;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
142AutoSize = true
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
205base.AutoSize = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
103set => base.AutoSize = value;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
115set => base.AutoSize = value;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
184set => base.AutoSize = value;
System\Windows\Forms\Panels\Panel.cs (1)
48set => base.AutoSize = value;
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
63set => base.AutoSize = value;
System\Windows\Forms\UserControl.cs (1)
46set => base.AutoSize = value;
System.Windows.Forms.Design.Tests (2)
ControlDesignerTests.cs (2)
265_designer._control.AutoSize = false; 292_designer._control.AutoSize = false;
System.Windows.Forms.Tests (23)
System\Windows\Forms\ControlTests.Properties.cs (20)
923control.AutoSize = value; 929control.AutoSize = value; 935control.AutoSize = !value; 966control.AutoSize = value; 974control.AutoSize = value; 982control.AutoSize = !value; 1028control.AutoSize = value; 1037control.AutoSize = value; 1046control.AutoSize = !value; 1075control.AutoSize = value; 1084control.AutoSize = value; 1093control.AutoSize = !value; 1140control.AutoSize = value; 1154control.AutoSize = value; 1168control.AutoSize = !value; 1192AutoSize = true 1204control.AutoSize = false; 1209control.AutoSize = false; 1214control.AutoSize = true; 1220control.AutoSize = false;
System\Windows\Forms\ListBoxTests.cs (3)
890AutoSize = autoSize, 931AutoSize = autoSize, 991AutoSize = autoSize,
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (1)
148base.AutoSize = value;
System\Windows\Integration\WindowsFormsHost.cs (1)
337Child.AutoSize = false;
69 references to AutoSize
System.Windows.Forms (19)
System\Windows\Forms\Control.cs (2)
612if (value == AutoSize) 3399LayoutTransaction.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)
126get => base.AutoSize;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
61get => base.AutoSize;
System\Windows\Forms\Controls\Labels\Label.cs (1)
105get => 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)
425LayoutTransaction.DoLayoutIf(AutoSize, this, this, PropertyNames.Image);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
192get => base.AutoSize; 195if (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)
114get => 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)
47get => base.AutoSize;
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2575if (control.AutoSize)
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
62get => 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)
36Assert.False(control.AutoSize); 130Assert.False(control.AutoSize);
System\Windows\Forms\ComboBoxTests.cs (1)
33Assert.False(control.AutoSize);
System\Windows\Forms\ContainerControlTests.cs (2)
33Assert.False(control.AutoSize); 332Assert.False(control.AutoSize);
System\Windows\Forms\ControlTests.cs (5)
23Assert.False(control.AutoSize); 112Assert.False(control.AutoSize); 208Assert.False(control.AutoSize); 304Assert.False(control.AutoSize); 400Assert.False(control.AutoSize);
System\Windows\Forms\ControlTests.Properties.cs (19)
924Assert.Equal(value, control.AutoSize); 930Assert.Equal(value, control.AutoSize); 936Assert.Equal(!value, control.AutoSize); 967Assert.Equal(value, control.AutoSize); 975Assert.Equal(value, control.AutoSize); 983Assert.Equal(!value, control.AutoSize); 1029Assert.Equal(value, control.AutoSize); 1038Assert.Equal(value, control.AutoSize); 1047Assert.Equal(!value, control.AutoSize); 1076Assert.Equal(value, control.AutoSize); 1085Assert.Equal(value, control.AutoSize); 1094Assert.Equal(!value, control.AutoSize); 1141Assert.Equal(value, control.AutoSize); 1155Assert.Equal(value, control.AutoSize); 1169Assert.Equal(!value, control.AutoSize); 1205Assert.False(control.AutoSize); 1210Assert.False(control.AutoSize); 1215Assert.True(control.AutoSize); 1221Assert.False(control.AutoSize);
System\Windows\Forms\DateTimePickerTests.cs (1)
30Assert.False(control.AutoSize);
System\Windows\Forms\ListBoxTests.cs (1)
26Assert.False(control.AutoSize);
System\Windows\Forms\ListControlTests.cs (1)
27Assert.False(control.AutoSize);
System\Windows\Forms\ListViewTests.cs (1)
32Assert.False(control.AutoSize);
System\Windows\Forms\MdiClientTests.cs (1)
25Assert.False(control.AutoSize);
System\Windows\Forms\MonthCalendarTests.cs (1)
29Assert.False(control.AutoSize);
System\Windows\Forms\PictureBoxTests.cs (5)
28Assert.False(control.AutoSize); 1295Assert.Equal(expectedAutoSize, pictureBox.AutoSize); 1301Assert.Equal(expectedAutoSize, pictureBox.AutoSize); 1314Assert.Equal(expectedAutoSize, pictureBox.AutoSize); 1320Assert.Equal(expectedAutoSize, pictureBox.AutoSize);
System\Windows\Forms\ProgressBarTests.cs (1)
25Assert.False(control.AutoSize);
System\Windows\Forms\PropertyGridTests.cs (1)
38Assert.False(control.AutoSize);
System\Windows\Forms\ScrollableControlTests.cs (1)
29Assert.False(control.AutoSize);
System\Windows\Forms\SplitterTests.cs (1)
24Assert.False(control.AutoSize);
System\Windows\Forms\TabControlTests.cs (1)
27Assert.False(control.AutoSize);
System\Windows\Forms\TreeViewTests.cs (1)
24Assert.False(control.AutoSize);
System\Windows\Forms\WebBrowserTests.cs (1)
25Assert.False(control.AutoSize);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
144return base.AutoSize;