14 instantiations of ToolStripItemTextRenderEventArgs
System.Windows.Forms (7)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
221renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(e.Graphics, this, Text, InternalLayout.TextRectangle, ForeColor, Font, InternalLayout.TextFormat));
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
193renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, Text, InternalLayout.TextRectangle, ForeColor, Font, InternalLayout.TextFormat));
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (1)
379renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, Text, textRect, textColor, font, InternalLayout.TextFormat));
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
994renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, Text, InternalLayout.TextRectangle, textColor, Font, (rightToLeft) ? ContentAlignment.MiddleRight : ContentAlignment.MiddleLeft)); 1003renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, GetShortcutText(), InternalLayout.TextRectangle, textColor, Font, (rightToLeft) ? ContentAlignment.MiddleLeft : ContentAlignment.MiddleRight)); 1025renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, Text, InternalLayout.TextRectangle, textColor, Font, InternalLayout.TextFormat));
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
528renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, SplitButtonButton.Text, SplitButtonButtonLayout.TextRectangle, ForeColor, Font, SplitButtonButtonLayout.TextFormat));
System.Windows.Forms.Tests (7)
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (5)
24ToolStripItemTextRenderEventArgs e = new(g, item, text, textRectangle, textColor, textFont, format); 50ToolStripItemTextRenderEventArgs e = new(g, item, text, textRectangle, textColor, textFont, textAlign); 66Assert.Throws<ArgumentNullException>("item", () => new ToolStripItemTextRenderEventArgs(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.Top)); 67Assert.Throws<ArgumentNullException>("item", () => new ToolStripItemTextRenderEventArgs(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, ContentAlignment.TopLeft)); 82ToolStripItemTextRenderEventArgs e = new(graphics, new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.Blue, SystemFonts.DefaultFont, TextFormatFlags.Top)
System\Windows\Forms\ToolStripRendererTests.cs (2)
314ToolStripItemTextRenderEventArgs eventArgs = new(graphics, item, text, textRectangle, textColor, textFont, format); 843ToolStripItemTextRenderEventArgs e = new(graphics, item, text, textRectangle, textColor, textFont, format);
12 references to ToolStripItemTextRenderEventArgs
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
216protected override void OnRenderItemText(ToolStripItemTextRenderEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemTextRenderEventHandler.cs (1)
9public delegate void ToolStripItemTextRenderEventHandler(object? sender, ToolStripItemTextRenderEventArgs e);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
707protected override void OnRenderItemText(ToolStripItemTextRenderEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
470public void DrawItemText(ToolStripItemTextRenderEventArgs e) 854protected virtual void OnRenderItemText(ToolStripItemTextRenderEventArgs e)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
2041protected override void OnRenderItemText(ToolStripItemTextRenderEventArgs e)
System.Windows.Forms.Tests (6)
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (3)
24ToolStripItemTextRenderEventArgs e = new(g, item, text, textRectangle, textColor, textFont, format); 50ToolStripItemTextRenderEventArgs e = new(g, item, text, textRectangle, textColor, textFont, textAlign); 82ToolStripItemTextRenderEventArgs e = new(graphics, new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.Blue, SystemFonts.DefaultFont, TextFormatFlags.Top)
System\Windows\Forms\ToolStripRendererTests.cs (3)
314ToolStripItemTextRenderEventArgs eventArgs = new(graphics, item, text, textRectangle, textColor, textFont, format); 843ToolStripItemTextRenderEventArgs e = new(graphics, item, text, textRectangle, textColor, textFont, format); 1047public new void OnRenderItemText(ToolStripItemTextRenderEventArgs e) => base.OnRenderItemText(e);