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