16 instantiations of ToolStripItemImageRenderEventArgs
System.Windows.Forms (8)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
212
ToolStripItemImageRenderEventArgs rea =
new
(e.Graphics, this, InternalLayout.ImageRectangle)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
188
renderer.DrawItemImage(new
ToolStripItemImageRenderEventArgs
(g, this, InternalLayout.ImageRectangle));
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (1)
342
renderer.DrawItemImage(new
ToolStripItemImageRenderEventArgs
(e.Graphics, this, InternalLayout.ImageRectangle));
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
987
renderer.DrawItemCheck(new
ToolStripItemImageRenderEventArgs
(g, this, CheckedImage, checkRectangle));
1017
renderer.DrawItemImage(new
ToolStripItemImageRenderEventArgs
(g, this, InternalLayout.ImageRectangle));
1030
renderer.DrawItemImage(new
ToolStripItemImageRenderEventArgs
(g, this, InternalLayout.ImageRectangle));
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
523
renderer.DrawItemImage(new
ToolStripItemImageRenderEventArgs
(g, this, SplitButtonButtonLayout.ImageRectangle));
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
202
renderer.DrawItemImage(new
ToolStripItemImageRenderEventArgs
(e.Graphics, this, InternalLayout.ImageRectangle));
System.Windows.Forms.Tests (8)
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (4)
24
Assert.Throws<ArgumentNullException>(() => new
ToolStripItemImageRenderEventArgs
(g, toolStripItem, Rectangle.Empty));
64
ToolStripItemImageRenderEventArgs e =
new
(g, item, imageRectangle);
82
ToolStripItemImageRenderEventArgs e =
new
(g, item, new Rectangle(1, 2, 3, 4));
102
ToolStripItemImageRenderEventArgs e =
new
(graphics, item, image, imageRectangle);
System\Windows\Forms\ToolStripRendererTests.cs (4)
206
ToolStripItemImageRenderEventArgs eventArgs =
new
(graphics, item, image, imageRectangle);
239
ToolStripItemImageRenderEventArgs eventArgs =
new
(graphics, item, image, imageRectangle);
801
ToolStripItemImageRenderEventArgs e =
new
(graphics, item, image, imageRectangle);
821
ToolStripItemImageRenderEventArgs e =
new
(graphics, item, image, imageRectangle);
21 references to ToolStripItemImageRenderEventArgs
System.Windows.Forms (12)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
212
ToolStripItemImageRenderEventArgs
rea = new(e.Graphics, this, InternalLayout.ImageRectangle)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (3)
105
protected override void OnRenderItemCheck(
ToolStripItemImageRenderEventArgs
e)
385
protected override void OnRenderItemImage(
ToolStripItemImageRenderEventArgs
e)
483
private void RenderItemImageOfLowColorDepth(
ToolStripItemImageRenderEventArgs
e)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemImageRenderEventHandler.cs (1)
9
public delegate void ToolStripItemImageRenderEventHandler(object? sender,
ToolStripItemImageRenderEventArgs
e);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (3)
723
protected override void OnRenderItemCheck(
ToolStripItemImageRenderEventArgs
e)
735
protected override void OnRenderItemImage(
ToolStripItemImageRenderEventArgs
e)
1043
private void RenderCheckBackground(
ToolStripItemImageRenderEventArgs
e)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (4)
444
public void DrawItemImage(
ToolStripItemImageRenderEventArgs
e)
457
public void DrawItemCheck(
ToolStripItemImageRenderEventArgs
e)
768
protected virtual void OnRenderItemImage(
ToolStripItemImageRenderEventArgs
e)
811
protected virtual void OnRenderItemCheck(
ToolStripItemImageRenderEventArgs
e)
System.Windows.Forms.Tests (9)
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (3)
64
ToolStripItemImageRenderEventArgs
e = new(g, item, imageRectangle);
82
ToolStripItemImageRenderEventArgs
e = new(g, item, new Rectangle(1, 2, 3, 4));
102
ToolStripItemImageRenderEventArgs
e = new(graphics, item, image, imageRectangle);
System\Windows\Forms\ToolStripRendererTests.cs (6)
206
ToolStripItemImageRenderEventArgs
eventArgs = new(graphics, item, image, imageRectangle);
239
ToolStripItemImageRenderEventArgs
eventArgs = new(graphics, item, image, imageRectangle);
801
ToolStripItemImageRenderEventArgs
e = new(graphics, item, image, imageRectangle);
821
ToolStripItemImageRenderEventArgs
e = new(graphics, item, image, imageRectangle);
1043
public new void OnRenderItemCheck(
ToolStripItemImageRenderEventArgs
e) => base.OnRenderItemCheck(e);
1045
public new void OnRenderItemImage(
ToolStripItemImageRenderEventArgs
e) => base.OnRenderItemImage(e);