3 types derived from ToolStripItemRenderEventArgs
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemImageRenderEventArgs.cs (1)
9
public class ToolStripItemImageRenderEventArgs :
ToolStripItemRenderEventArgs
System\Windows\Forms\Controls\ToolStrips\ToolStripItemTextRenderEventArgs.cs (1)
11
public class ToolStripItemTextRenderEventArgs :
ToolStripItemRenderEventArgs
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparatorRenderEventArgs.cs (1)
11
public class ToolStripSeparatorRenderEventArgs :
ToolStripItemRenderEventArgs
10 instantiations of ToolStripItemRenderEventArgs
System.Windows.Forms (7)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
208
renderer.DrawButtonBackground(new
ToolStripItemRenderEventArgs
(e.Graphics, this));
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
184
renderer.DrawDropDownButtonBackground(new
ToolStripItemRenderEventArgs
(e.Graphics, this));
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (1)
338
renderer.DrawLabelBackground(new
ToolStripItemRenderEventArgs
(e.Graphics, this));
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
953
renderer.DrawMenuItemBackground(new
ToolStripItemRenderEventArgs
(g, this));
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
114
renderer.DrawOverflowButtonBackground(new
ToolStripItemRenderEventArgs
(e.Graphics, this));
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
519
renderer.DrawSplitButton(new
ToolStripItemRenderEventArgs
(g, this));
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
198
renderer.DrawToolStripStatusLabelBackground(new
ToolStripItemRenderEventArgs
(e.Graphics, this));
System.Windows.Forms.Tests (3)
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (2)
24
Assert.Throws<ArgumentNullException>(() => new
ToolStripItemRenderEventArgs
(g, toolStripItem));
45
ToolStripItemRenderEventArgs e =
new
(g, item);
System\Windows\Forms\ToolStripRendererTests.cs (1)
81
yield return new object[] { new
ToolStripItemRenderEventArgs
(graphics, new SubToolStripItem()) };
73 references to ToolStripItemRenderEventArgs
System.Windows.Forms (46)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (9)
89
protected override void OnRenderDropDownButtonBackground(
ToolStripItemRenderEventArgs
e)
128
protected override void OnRenderItemBackground(
ToolStripItemRenderEventArgs
e)
133
protected override void OnRenderSplitButtonBackground(
ToolStripItemRenderEventArgs
e)
164
protected override void OnRenderLabelBackground(
ToolStripItemRenderEventArgs
e)
176
protected override void OnRenderMenuItemBackground(
ToolStripItemRenderEventArgs
e)
198
protected override void OnRenderOverflowButtonBackground(
ToolStripItemRenderEventArgs
e)
403
protected override void OnRenderButtonBackground(
ToolStripItemRenderEventArgs
e)
434
private static void RenderItemInternalFilled(
ToolStripItemRenderEventArgs
e)
439
private static void RenderItemInternalFilled(
ToolStripItemRenderEventArgs
e, bool pressFill)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemRenderEventHandler.cs (1)
9
public delegate void ToolStripItemRenderEventHandler(object? sender,
ToolStripItemRenderEventArgs
e);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (10)
143
protected override void OnRenderOverflowButtonBackground(
ToolStripItemRenderEventArgs
e)
220
protected override void OnRenderDropDownButtonBackground(
ToolStripItemRenderEventArgs
e)
251
protected override void OnRenderSplitButtonBackground(
ToolStripItemRenderEventArgs
e)
310
protected override void OnRenderToolStripStatusLabelBackground(
ToolStripItemRenderEventArgs
e)
326
protected override void OnRenderLabelBackground(
ToolStripItemRenderEventArgs
e)
337
protected override void OnRenderButtonBackground(
ToolStripItemRenderEventArgs
e)
536
protected override void OnRenderMenuItemBackground(
ToolStripItemRenderEventArgs
e)
1104
private static void RenderLabelInternal(
ToolStripItemRenderEventArgs
e)
1211
private void RenderOverflowBackground(
ToolStripItemRenderEventArgs
e, bool rightToLeft)
1563
private void RenderItemInternal(
ToolStripItemRenderEventArgs
e, bool useHotBorder)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (16)
357
public void DrawItemBackground(
ToolStripItemRenderEventArgs
e)
383
public void DrawLabelBackground(
ToolStripItemRenderEventArgs
e)
395
public void DrawButtonBackground(
ToolStripItemRenderEventArgs
e)
418
public void DrawDropDownButtonBackground(
ToolStripItemRenderEventArgs
e)
431
public void DrawOverflowButtonBackground(
ToolStripItemRenderEventArgs
e)
483
public void DrawMenuItemBackground(
ToolStripItemRenderEventArgs
e)
496
public void DrawSplitButton(
ToolStripItemRenderEventArgs
e)
509
public void DrawToolStripStatusLabelBackground(
ToolStripItemRenderEventArgs
e)
707
protected virtual void OnRenderItemBackground(
ToolStripItemRenderEventArgs
e)
731
protected virtual void OnRenderButtonBackground(
ToolStripItemRenderEventArgs
e)
743
protected virtual void OnRenderDropDownButtonBackground(
ToolStripItemRenderEventArgs
e)
755
protected virtual void OnRenderOverflowButtonBackground(
ToolStripItemRenderEventArgs
e)
895
protected virtual void OnRenderLabelBackground(
ToolStripItemRenderEventArgs
e)
907
protected virtual void OnRenderMenuItemBackground(
ToolStripItemRenderEventArgs
e)
947
protected virtual void OnRenderToolStripStatusLabelBackground(
ToolStripItemRenderEventArgs
e)
1011
protected virtual void OnRenderSplitButtonBackground(
ToolStripItemRenderEventArgs
e)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (10)
332
protected override void OnRenderItemBackground(
ToolStripItemRenderEventArgs
e)
346
protected override void OnRenderButtonBackground(
ToolStripItemRenderEventArgs
e)
362
protected override void OnRenderDropDownButtonBackground(
ToolStripItemRenderEventArgs
e)
378
protected override void OnRenderOverflowButtonBackground(
ToolStripItemRenderEventArgs
e)
401
protected override void OnRenderLabelBackground(
ToolStripItemRenderEventArgs
e)
409
protected override void OnRenderMenuItemBackground(
ToolStripItemRenderEventArgs
e)
493
protected override void OnRenderToolStripStatusLabelBackground(
ToolStripItemRenderEventArgs
e)
506
protected override void OnRenderSplitButtonBackground(
ToolStripItemRenderEventArgs
e)
643
private static void RenderItemInternal(
ToolStripItemRenderEventArgs
e)
787
private static void RenderLabelInternal(
ToolStripItemRenderEventArgs
e)
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1881
protected override void OnRenderLabelBackground(
ToolStripItemRenderEventArgs
e)
1967
protected override void OnRenderSplitButtonBackground(
ToolStripItemRenderEventArgs
e)
System.Windows.Forms.Tests (25)
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (1)
45
ToolStripItemRenderEventArgs
e = new(g, item);
System\Windows\Forms\ToolStripRendererTests.cs (24)
86
public void ToolStripRenderer_DrawButtonBackground_Invoke_CallsRenderButtonBackground(
ToolStripItemRenderEventArgs
eventArgs)
110
public void ToolStripRenderer_DrawDropDownButtonBackground_Invoke_CallsRenderDropDownButtonBackground(
ToolStripItemRenderEventArgs
eventArgs)
167
public void ToolStripRenderer_DrawItemBackground_Invoke_CallsRenderItemBackground(
ToolStripItemRenderEventArgs
eventArgs)
345
public void ToolStripRenderer_DrawLabelBackground_Invoke_CallsRenderLabelBackground(
ToolStripItemRenderEventArgs
eventArgs)
369
public void ToolStripRenderer_DrawMenuItemBackground_Invoke_CallsRenderMenuItemBackground(
ToolStripItemRenderEventArgs
eventArgs)
393
public void ToolStripRenderer_DrawOverflowButtonBackground_Invoke_CallsRenderOverflowButtonBackground(
ToolStripItemRenderEventArgs
eventArgs)
451
public void ToolStripRenderer_DrawSplitButton_Invoke_CallsRenderSplitButtonBackground(
ToolStripItemRenderEventArgs
eventArgs)
633
public void ToolStripRenderer_DrawToolStripStatusLabelBackground_Invoke_CallsRenderToolStripStatusLabelBackground(
ToolStripItemRenderEventArgs
eventArgs)
744
public void ToolStripRenderer_OnRenderButtonBackground_Invoke_Nop(
ToolStripItemRenderEventArgs
e)
755
public void ToolStripRenderer_OnRenderDropDownButtonBackground_Invoke_Nop(
ToolStripItemRenderEventArgs
e)
788
public void ToolStripRenderer_OnRenderItemBackground_Invoke_Nop(
ToolStripItemRenderEventArgs
e)
861
public void ToolStripRenderer_OnRenderLabelBackground_Invoke_Nop(
ToolStripItemRenderEventArgs
e)
872
public void ToolStripRenderer_OnRenderMenuItemBackground_Invoke_Nop(
ToolStripItemRenderEventArgs
e)
883
public void ToolStripRenderer_OnRenderOverflowButtonBackground_Invoke_Nop(
ToolStripItemRenderEventArgs
e)
905
public void ToolStripRenderer_OnRenderSplitButtonBackground_Invoke_Nop(
ToolStripItemRenderEventArgs
e)
982
public void ToolStripRenderer_OnRenderToolStripStatusLabelBackground_Invoke_Nop(
ToolStripItemRenderEventArgs
e)
1033
public new void OnRenderButtonBackground(
ToolStripItemRenderEventArgs
e) => base.OnRenderButtonBackground(e);
1035
public new void OnRenderDropDownButtonBackground(
ToolStripItemRenderEventArgs
e) => base.OnRenderDropDownButtonBackground(e);
1041
public new void OnRenderItemBackground(
ToolStripItemRenderEventArgs
e) => base.OnRenderItemBackground(e);
1049
public new void OnRenderLabelBackground(
ToolStripItemRenderEventArgs
e) => base.OnRenderLabelBackground(e);
1051
public new void OnRenderMenuItemBackground(
ToolStripItemRenderEventArgs
e) => base.OnRenderMenuItemBackground(e);
1053
public new void OnRenderOverflowButtonBackground(
ToolStripItemRenderEventArgs
e) => base.OnRenderOverflowButtonBackground(e);
1057
public new void OnRenderSplitButtonBackground(
ToolStripItemRenderEventArgs
e) => base.OnRenderSplitButtonBackground(e);
1069
public new void OnRenderToolStripStatusLabelBackground(
ToolStripItemRenderEventArgs
e) => base.OnRenderToolStripStatusLabelBackground(e);