29 references to ContentRectangle
System.Windows.Forms (12)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (4)
269Rectangle fillRect = item.Selected ? item.ContentRectangle : bounds; 355Rectangle fillRect = item is not null && item.Selected ? item.ContentRectangle : bounds; 1110Rectangle fillRect = item.Selected ? item.ContentRectangle : bounds; 1570Rectangle fillRect = (item.Selected) ? item.ContentRectangle : bounds;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (8)
428ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, item.ContentRectangle, item.ContentRectangle); 432FillBackground(g, item.ContentRectangle, item.BackColor); 473ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, item.ContentRectangle, fillRect); 564Rectangle fillRect = splitButton.ContentRectangle; 599Rectangle fillRect = splitButton.Selected ? splitButton.ContentRectangle : bounds; 671Rectangle fillRect = item.ContentRectangle; 793Rectangle fillRect = item.ContentRectangle;
System.Windows.Forms.Tests (17)
System\Windows\Forms\ToolStripButtonTests.cs (6)
40Assert.Equal(new Rectangle(2, 2, 19, 19), item.ContentRectangle); 121Assert.Equal(new Rectangle(2, 2, 19, 19), item.ContentRectangle); 208Assert.Equal(new Rectangle(2, 2, 19, 19), item.ContentRectangle); 298Assert.Equal(new Rectangle(2, 2, 19, 19), item.ContentRectangle); 386Assert.Equal(new Rectangle(2, 2, 19, 19), item.ContentRectangle); 484Assert.Equal(new Rectangle(2, 2, 19, 19), item.ContentRectangle);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
68Assert.Equal(new Rectangle(2, 2, 0, 0), item.ContentRectangle);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
36Assert.Equal(new Rectangle(2, 2, 19, 19), item.ContentRectangle); 125Assert.Equal(new Rectangle(2, 2, 19, 19), item.ContentRectangle); 224Assert.Equal(new Rectangle(2, 2, 19, 19), item.ContentRectangle); 324Assert.Equal(new Rectangle(2, 2, 19, 19), item.ContentRectangle);
System\Windows\Forms\ToolStripItemTests.cs (4)
39Assert.Equal(new Rectangle(2, 2, 19, 19), item.ContentRectangle); 124Assert.Equal(new Rectangle(2, 2, 19, 19), item.ContentRectangle); 219Assert.Equal(new Rectangle(2, 2, 19, 19), item.ContentRectangle); 2052Assert.Equal(expected, item.ContentRectangle);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
37Assert.Equal(new Rectangle(-2, 2, 36, 15), item.ContentRectangle);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
37Assert.Equal(new Rectangle(2, 2, 2, 2), item.ContentRectangle);