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