23 references to InternalLayout
System.Windows.Forms (23)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (3)
212
ToolStripItemImageRenderEventArgs rea = new(e.Graphics, this,
InternalLayout
.ImageRectangle)
221
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(e.Graphics, this, Text,
InternalLayout
.TextRectangle, ForeColor, Font,
InternalLayout
.TextFormat));
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (4)
188
renderer.DrawItemImage(new ToolStripItemImageRenderEventArgs(g, this,
InternalLayout
.ImageRectangle));
193
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, Text,
InternalLayout
.TextRectangle, ForeColor, Font,
InternalLayout
.TextFormat));
198
Rectangle dropDownArrowRect = (
InternalLayout
is ToolStripDropDownButtonInternalLayout layout) ? layout.DropDownArrowRect : Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (3)
566
Rectangle content = LayoutUtils.InflateRect(
InternalLayout
.ContentRectangle, Padding);
2340
return
InternalLayout
.GetPreferredSize(constrainingSize - Padding.Size) + Padding.Size;
2633
InternalLayout
.PerformLayout();
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (3)
342
renderer.DrawItemImage(new ToolStripItemImageRenderEventArgs(e.Graphics, this,
InternalLayout
.ImageRectangle));
378
Rectangle textRect =
InternalLayout
.TextRectangle;
379
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, Text, textRect, textColor, font,
InternalLayout
.TextFormat));
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (8)
974
if (
InternalLayout
is ToolStripMenuItemInternalLayout menuItemInternalLayout && menuItemInternalLayout.UseMenuLayout)
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));
1017
renderer.DrawItemImage(new ToolStripItemImageRenderEventArgs(g, this,
InternalLayout
.ImageRectangle));
1025
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, Text,
InternalLayout
.TextRectangle, textColor, Font,
InternalLayout
.TextFormat));
1030
renderer.DrawItemImage(new ToolStripItemImageRenderEventArgs(g, this,
InternalLayout
.ImageRectangle));
1067
if (
InternalLayout
is ToolStripMenuItemInternalLayout internalLayout && internalLayout.UseMenuLayout)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
247
if (
InternalLayout
is not null /*if layout is invalid - calls CreateInternalLayout - which resets splitButtonButtonLayout to null*/
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
202
renderer.DrawItemImage(new ToolStripItemImageRenderEventArgs(e.Graphics, this,
InternalLayout
.ImageRectangle));