Base:
property
AutoSize
System.Windows.Forms.Control.AutoSize
1 override of AutoSize
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
101public override bool AutoSize
32 writes to AutoSize
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
192_toolStrip.AutoSize = false;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
149AutoSize = true;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
382AutoSize = false,
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1639AutoSize = false;
System.Windows.Forms.Tests (28)
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (1)
925menuStrip.AutoSize = false;
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (1)
906statusStrip.AutoSize = false;
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (1)
966toolStrip.AutoSize = false;
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (3)
242using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) }; 283using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) }; 310using ToolStrip toolStrip = new() { AutoSize = false, Size = new(300, 30) };
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (1)
200AutoSize = false,
System\Windows\Forms\AccessibleObjects\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObjectTests.cs (2)
82using ToolStrip toolStrip = new() { AutoSize = false, Size = new(30, 30) }; 107using ToolStrip toolStrip = new() { AutoSize = false, Size = new(60, 30) };
System\Windows\Forms\ToolStripTests.cs (14)
889control.AutoSize = value; 895control.AutoSize = value; 901control.AutoSize = !value; 936control.AutoSize = value; 944control.AutoSize = value; 952control.AutoSize = !value; 990control.AutoSize = value; 998control.AutoSize = value; 1006control.AutoSize = !value; 1024AutoSize = true 1036control.AutoSize = false; 1041control.AutoSize = false; 1046control.AutoSize = true; 1052control.AutoSize = false;
TrackBarTests.cs (5)
401AutoSize = true 413control.AutoSize = false; 418control.AutoSize = false; 423control.AutoSize = true; 429control.AutoSize = false;
28 references to AutoSize
System.Windows.Forms (7)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2517using (LayoutTransaction.CreateTransactionIf(AutoSize, this, this, PropertyNames.Renderer))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.ToolStripLayoutData.cs (2)
21_autoSize = toolStrip.AutoSize; 26=> toolStrip is not null && toolStrip.Size == _size && toolStrip.LayoutStyle == _layoutStyle && toolStrip.AutoSize == _autoSize;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
285preferredSize = (!_wrappedToolStrip.AutoSize) ? _wrappedToolStrip.Size : _wrappedToolStrip.GetPreferredSize(constrainingSize);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
438int controlToDragWidth = (toolStripToDrag.AutoSize) ? toolStripToDrag.PreferredSize.Width : toolStripToDrag.Width;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
444int controlToDragWidth = (toolStripToDrag.AutoSize) ? toolStripToDrag.PreferredSize.Height : toolStripToDrag.Height;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (1)
368if (toolStrip.AutoSize && (IsNotInToolStripPanelWithLeftDockstyle || dock == DockStyle.Right))
System.Windows.Forms.Tests (21)
System\Windows\Forms\MenuStripTests.cs (1)
29Assert.True(control.AutoSize);
System\Windows\Forms\StatusStripTests.cs (1)
29Assert.True(control.AutoSize);
System\Windows\Forms\ToolStripTests.cs (15)
33Assert.True(control.AutoSize); 191Assert.True(control.AutoSize); 890Assert.Equal(value, control.AutoSize); 896Assert.Equal(value, control.AutoSize); 902Assert.Equal(!value, control.AutoSize); 937Assert.Equal(value, control.AutoSize); 945Assert.Equal(value, control.AutoSize); 953Assert.Equal(!value, control.AutoSize); 991Assert.Equal(value, control.AutoSize); 999Assert.Equal(value, control.AutoSize); 1007Assert.Equal(!value, control.AutoSize); 1037Assert.False(control.AutoSize); 1042Assert.False(control.AutoSize); 1047Assert.True(control.AutoSize); 1053Assert.False(control.AutoSize);
TrackBarTests.cs (4)
414Assert.False(control.AutoSize); 419Assert.False(control.AutoSize); 424Assert.True(control.AutoSize); 430Assert.False(control.AutoSize);