10 references to ToolStripItemTextRenderEventArgs
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
221
renderer.DrawItemText(new
ToolStripItemTextRenderEventArgs
(e.Graphics, this, Text, InternalLayout.TextRectangle, ForeColor, Font, InternalLayout.TextFormat));
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
193
renderer.DrawItemText(new
ToolStripItemTextRenderEventArgs
(g, this, Text, InternalLayout.TextRectangle, ForeColor, Font, InternalLayout.TextFormat));
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (1)
379
renderer.DrawItemText(new
ToolStripItemTextRenderEventArgs
(g, this, Text, textRect, textColor, font, InternalLayout.TextFormat));
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
1025
renderer.DrawItemText(new
ToolStripItemTextRenderEventArgs
(g, this, Text, InternalLayout.TextRectangle, textColor, Font, InternalLayout.TextFormat));
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
528
renderer.DrawItemText(new
ToolStripItemTextRenderEventArgs
(g, this, SplitButtonButton.Text, SplitButtonButtonLayout.TextRectangle, ForeColor, Font, SplitButtonButtonLayout.TextFormat));
System.Windows.Forms.Tests (5)
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (3)
24
ToolStripItemTextRenderEventArgs e =
new
(g, item, text, textRectangle, textColor, textFont, format);
66
Assert.Throws<ArgumentNullException>("item", () => new
ToolStripItemTextRenderEventArgs
(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.Top));
82
ToolStripItemTextRenderEventArgs e =
new
(graphics, new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.Blue, SystemFonts.DefaultFont, TextFormatFlags.Top)
System\Windows\Forms\ToolStripRendererTests.cs (2)
314
ToolStripItemTextRenderEventArgs eventArgs =
new
(graphics, item, text, textRectangle, textColor, textFont, format);
843
ToolStripItemTextRenderEventArgs e =
new
(graphics, item, text, textRectangle, textColor, textFont, format);