15 references to ContentRectangle
System.Windows.Forms (15)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (4)
269Rectangle fillRect = item.Selected ? item.ContentRectangle : bounds; 354Rectangle fillRect = item is not null && item.Selected ? item.ContentRectangle : bounds; 1109Rectangle fillRect = item.Selected ? item.ContentRectangle : bounds; 1569Rectangle fillRect = (item.Selected) ? item.ContentRectangle : bounds;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (3)
253bounds: e.Item.ContentRectangle, 360Rectangle bounds = e.Item.ContentRectangle; 441Rectangle arrowRect = item.ContentRectangle;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (8)
481ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, item.ContentRectangle, item.ContentRectangle); 485FillBackground(g, item.ContentRectangle, item.BackColor); 526ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, item.ContentRectangle, fillRect); 622Rectangle fillRect = splitButton.ContentRectangle; 658Rectangle fillRect = splitButton.Selected ? splitButton.ContentRectangle : bounds; 730Rectangle fillRect = item.ContentRectangle; 852Rectangle fillRect = item.ContentRectangle;