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