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