1 write to textRectangle
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
474
textRectangle
= new Rectangle(nextPoint, maxTextSize);
8 references to textRectangle
System.Windows.Forms (8)
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (8)
254
return
textRectangle
;
477
nextPoint.X =
textRectangle
.Right+ scaledTextPadding.Right + scaledArrowPadding.Left;
493
textRectangle
.X = width -
textRectangle
.Right;
510
textRectangle
.Y = LayoutUtils.VAlign(
textRectangle
.Size, new Rectangle(Point.Empty, maxItemSize), ContentAlignment.MiddleCenter).Y;
511
textRectangle
.Y += (
textRectangle
.Height %2); // if the height is odd, push down by one px, see 339274 for picture