2 writes to ImageRectangle
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemImageRenderEventArgs.cs (2)
15
ImageRectangle
= imageRectangle;
29
ImageRectangle
= imageRectangle;
21 references to ImageRectangle
System.Windows.Forms (10)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
508
Rectangle imageRect = e.
ImageRectangle
;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (7)
743
Rectangle imageRect = e.
ImageRectangle
;
1047
e.
ImageRectangle
.Left - 2,
1048
(e.Item.Height - e.
ImageRectangle
.Height) / 2 - 1,
1049
e.
ImageRectangle
.Width + 4, e.
ImageRectangle
.Height + 2)
1050
: new Rectangle(e.
ImageRectangle
.Left - 2, 1, e.
ImageRectangle
.Width + 4, e.Item.Height - 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
778
Rectangle imageRect = e.
ImageRectangle
;
821
Rectangle imageRect = e.
ImageRectangle
;
System.Windows.Forms.Tests (11)
System\Windows\Forms\ToolStripButtonTests.cs (8)
1302
Assert.True(e.
ImageRectangle
.X >= 0);
1303
Assert.True(e.
ImageRectangle
.Y >= 0);
1304
Assert.Equal(0, e.
ImageRectangle
.Width);
1305
Assert.Equal(0, e.
ImageRectangle
.Height);
1393
Assert.True(e.
ImageRectangle
.X >= 0);
1394
Assert.True(e.
ImageRectangle
.Y >= 0);
1395
Assert.Equal(0, e.
ImageRectangle
.Width);
1396
Assert.Equal(0, e.
ImageRectangle
.Height);
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (3)
67
Assert.Equal(imageRectangle, e.
ImageRectangle
);
85
Assert.Equal(new Rectangle(1, 2, 3, 4), e.
ImageRectangle
);
107
Assert.Equal(imageRectangle, e.
ImageRectangle
);