7 writes to DropDownButtonWidth
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
543public virtual void ResetDropDownButtonWidth() => DropDownButtonWidth = DefaultDropDownButtonWidth;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1405_addItemButton.DropDownButtonWidth = s_miniToolStripDropDownButtonWidth;
System.Windows.Forms.Tests (5)
System\Windows\Forms\ToolStripSplitButtonTests.cs (5)
319_toolStripSplitButton.DropDownButtonWidth = value; 326Action action = () => _toolStripSplitButton.DropDownButtonWidth = -1; 413_toolStripSplitButton.DropDownButtonWidth = initialWidth; 423_toolStripSplitButton.DropDownButtonWidth = 20; 431_toolStripSplitButton.DropDownButtonWidth = 11;
13 references to DropDownButtonWidth
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (4)
301Rectangle dropDownButtonBounds = new(Point.Empty, new Size(Math.Min(Width, DropDownButtonWidth), Height)); 321splitButtonButtonBounds.Offset(DropDownButtonWidth + _splitterWidth, 0); 350preferredSize.Width += DropDownButtonWidth + SplitterWidth + Padding.Horizontal; 551internal virtual bool ShouldSerializeDropDownButtonWidth() => DropDownButtonWidth != DefaultDropDownButtonWidth;
System.Windows.Forms.Tests (9)
System\Windows\Forms\ToolStripSplitButtonTests.cs (9)
83toolStripSplitButton.DropDownButtonWidth.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth); 93toolStripSplitButton.DropDownButtonWidth.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth); 104toolStripSplitButton.DropDownButtonWidth.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth); 115toolStripSplitButton.DropDownButtonWidth.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth); 129toolStripSplitButton.DropDownButtonWidth.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth); 147toolStripSplitButton.DropDownButtonWidth.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth); 165toolStripSplitButton.DropDownButtonWidth.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth); 320_toolStripSplitButton.DropDownButtonWidth.Should().Be(value); 417_toolStripSplitButton.DropDownButtonWidth.Should().Be(_toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownWidth);