15 references to PushButtonWidth
System.Windows.Forms.Design (15)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (15)
62
if (_showSplit && !string.IsNullOrEmpty(Text) && TextRenderer.MeasureText(Text, Font).Width +
PushButtonWidth
> preferredSize.Width)
64
return preferredSize + new Size(
PushButtonWidth
, 0);
201
_dropDownRectangle = new Rectangle(bounds.Right -
PushButtonWidth
- 1, 4,
PushButtonWidth
, bounds.Height - 8);
207
g.DrawLine(SystemPens.ButtonHighlight, bounds.Left +
PushButtonWidth
, 4, bounds.Left +
PushButtonWidth
, bounds.Bottom - 4);
208
g.DrawLine(SystemPens.ButtonHighlight, bounds.Left +
PushButtonWidth
+ 1, 4, bounds.Left +
PushButtonWidth
+ 1, bounds.Bottom - 4);
209
bounds.Offset(
PushButtonWidth
, 0);
210
bounds.Width -=
PushButtonWidth
;
214
g.DrawLine(SystemPens.ButtonHighlight, bounds.Right -
PushButtonWidth
, 4, bounds.Right -
PushButtonWidth
, bounds.Bottom - 4);
215
g.DrawLine(SystemPens.ButtonHighlight, bounds.Right -
PushButtonWidth
- 1, 4, bounds.Right -
PushButtonWidth
- 1, bounds.Bottom - 4);
216
bounds.Width -=
PushButtonWidth
;