10 references to ToolStripItemTextRenderEventArgs
System.Windows.Forms (5)
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 (1)
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 (5)
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (3)
24ToolStripItemTextRenderEventArgs e = new(g, item, text, textRectangle, textColor, textFont, format); 66Assert.Throws<ArgumentNullException>("item", () => new ToolStripItemTextRenderEventArgs(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.Top)); 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);