24 writes to Width
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\BindingNavigator.cs (1)
213PositionItem.Width = 50;
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
733_editorNode.Width = width; 822_editorNode.Width = _tn.EditorToolStrip.Width; 2259_editorNode.Width = _tn.EditorToolStrip.Width;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1232ToolStripItem.Width = _editorNode.EditorToolStrip.Width + 2;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (3)
380_typeHereNode.Width = width; 758Width = width 1375dropDownItem.Width = _commitedEditorNode.Width;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
885Width = s_miniToolStripTextBoxWidth
System.Windows.Forms.Tests (10)
System\Windows\Forms\ToolStripItemTests.cs (10)
9635item.Width = value; 9640item.Width = value; 9662item.Width = value; 9669item.Width = value; 9705item.Width = value; 9715item.Width = value; 9757item.Width = value; 9764item.Width = value; 9810item.Width = value; 9820item.Width = value;
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
1033Width = 100
TestPassApp (3)
PrintingControls.cs (1)
67item.Width = item.Width < 24 ? 24 : item.Width;
RemainingControls.cs (2)
18item.Width = item.Width < 24 ? 24 : item.Width; 28item.Width = item.Width < 24 ? 24 : item.Width;
WinFormsControlsTest (1)
DragDrop.cs (1)
453Width = 100
68 references to Width
System.Windows.Forms (12)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
2139Point midPointOfCurrent = new(selectedItem.Bounds.X + selectedItem.Width / 2, 2163Point otherItemMidLocation = new(otherItem.Bounds.X + otherItem.Width / 2, (down) ? otherItem.Bounds.Top : otherItem.Bounds.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (3)
307offset.X = -dropDownBounds.Width + Width; 317offset.X = -dropDownBounds.Width + Width; 321offset.X = Width;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (2)
100e.Graphics.DrawRectangle(SystemPens.ButtonHighlight, new Rectangle(0, 0, e.Item.Width - 1, e.Item.Height - 1)); 181e.Graphics.DrawRectangle(SystemPens.ButtonHighlight, 0, 0, e.Item.Width - 1, e.Item.Height - 1);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
172overflowArrowRect = new Rectangle(item.Width - _overflowButtonWidth, item.Height - _overflowArrowOffsetY, _overflowArrowWidth, _overflowArrowHeight); 322ControlPaint.DrawBorder3D(e.Graphics, new Rectangle(0, 0, item.Width, item.Height), item.BorderStyle, (Border3DSide)item.BorderSides);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (2)
301Rectangle dropDownButtonBounds = new(Point.Empty, new Size(Math.Min(Width, DropDownButtonWidth), Height)); 304int splitButtonButtonWidth = Math.Max(0, Width - dropDownButtonBounds.Width);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
499ControlPaint.DrawBorder3D(e.Graphics, new Rectangle(0, 0, item.Width - 1, item.Height - 1), item.BorderStyle, (Border3DSide)item.BorderSides);
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1259boundsInAdornerWindow.X += (ToolStripItem.Width - _editorNode.EditorToolStrip.Width) / 2;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1375dropDownItem.Width = _commitedEditorNode.Width;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1522_miniToolStrip.Width = _centerLabel.Width + 2;
System.Windows.Forms.Tests (47)
BindingNavigatorTests.cs (1)
112Assert.Equal(50, bn.PositionItem.Width);
System\Windows\Forms\ToolStripButtonTests.cs (6)
93Assert.Equal(23, item.Width); 174Assert.Equal(23, item.Width); 261Assert.Equal(23, item.Width); 351Assert.Equal(23, item.Width); 439Assert.Equal(23, item.Width); 537Assert.Equal(23, item.Width);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
122Assert.Equal(c.Width, item.Width);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
93Assert.Equal(23, item.Width); 182Assert.Equal(23, item.Width); 281Assert.Equal(23, item.Width); 389Assert.Equal(23, item.Width);
System\Windows\Forms\ToolStripItemTests.cs (23)
92Assert.Equal(23, item.Width); 177Assert.Equal(23, item.Width); 272Assert.Equal(23, item.Width); 9636Assert.Equal(value, item.Width); 9641Assert.Equal(value, item.Width); 9663Assert.Equal(value, item.Width); 9670Assert.Equal(value, item.Width); 9706Assert.Equal(value, item.Width); 9716Assert.Equal(value, item.Width); 9758Assert.Equal(value, item.Width); 9765Assert.Equal(value, item.Width); 9811Assert.Equal(value, item.Width); 9821Assert.Equal(value, item.Width); 14563Assert.Equal(bounds.Width, item.Width); 14571Assert.Equal(bounds.Width, item.Width); 14601Assert.Equal(bounds.Width, item.Width); 14611Assert.Equal(bounds.Width, item.Width); 14655Assert.Equal(bounds.Width, item.Width); 14668Assert.Equal(bounds.Width, item.Width); 14729Assert.Equal(bounds.Width, item.Width); 14739Assert.Equal(bounds.Width, item.Width); 14790Assert.Equal(bounds.Width, item.Width); 14803Assert.Equal(bounds.Width, item.Width);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
98Assert.Equal(32, item.Width);
System\Windows\Forms\ToolStripSeparatorTests.cs (11)
90Assert.Equal(6, item.Width); 1383Assert.Equal(bounds.Width, item.Width); 1391Assert.Equal(bounds.Width, item.Width); 1421Assert.Equal(bounds.Width, item.Width); 1431Assert.Equal(bounds.Width, item.Width); 1483Assert.Equal(57, item.Width); 1493Assert.Equal(57, item.Width); 1551Assert.Equal(bounds.Width, item.Width); 1561Assert.Equal(bounds.Width, item.Width); 1605Assert.Equal(bounds.Width, item.Width); 1615Assert.Equal(bounds.Width, item.Width);
TestPassApp (6)
PrintingControls.cs (2)
67item.Width = item.Width < 24 ? 24 : item.Width;
RemainingControls.cs (4)
18item.Width = item.Width < 24 ? 24 : item.Width; 28item.Width = item.Width < 24 ? 24 : item.Width;