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