7 writes to DropDownButtonWidth
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
543
public 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;
326
Action 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)
301
Rectangle dropDownButtonBounds = new(Point.Empty, new Size(Math.Min(Width,
DropDownButtonWidth
), Height));
321
splitButtonButtonBounds.Offset(
DropDownButtonWidth
+ _splitterWidth, 0);
350
preferredSize.Width +=
DropDownButtonWidth
+ SplitterWidth + Padding.Horizontal;
551
internal virtual bool ShouldSerializeDropDownButtonWidth() =>
DropDownButtonWidth
!= DefaultDropDownButtonWidth;
System.Windows.Forms.Tests (9)
System\Windows\Forms\ToolStripSplitButtonTests.cs (9)
83
toolStripSplitButton.
DropDownButtonWidth
.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth);
93
toolStripSplitButton.
DropDownButtonWidth
.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth);
104
toolStripSplitButton.
DropDownButtonWidth
.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth);
115
toolStripSplitButton.
DropDownButtonWidth
.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth);
129
toolStripSplitButton.
DropDownButtonWidth
.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth);
147
toolStripSplitButton.
DropDownButtonWidth
.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth);
165
toolStripSplitButton.
DropDownButtonWidth
.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth);
320
_toolStripSplitButton.
DropDownButtonWidth
.Should().Be(value);
417
_toolStripSplitButton.
DropDownButtonWidth
.Should().Be(_toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownWidth);