23 references to InternalLayout
System.Windows.Forms (23)
winforms\Managed\System\WinForms\ToolStripButton.cs (3)
257
ToolStripItemImageRenderEventArgs rea = new ToolStripItemImageRenderEventArgs(e.Graphics, this,
InternalLayout
.ImageRectangle);
263
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(e.Graphics, this, this.Text,
InternalLayout
.TextRectangle, this.ForeColor, this.Font,
InternalLayout
.TextFormat));
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (4)
172
renderer.DrawItemImage(new ToolStripItemImageRenderEventArgs(g, this,
InternalLayout
.ImageRectangle));
176
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, this.Text,
InternalLayout
.TextRectangle, this.ForeColor, this.Font,
InternalLayout
.TextFormat));
179
ToolStripDropDownButton.ToolStripDropDownButtonInternalLayout layout =
InternalLayout
as ToolStripDropDownButtonInternalLayout;
winforms\Managed\System\WinForms\ToolStripItem.cs (3)
603
Rectangle content = LayoutUtils.InflateRect(
InternalLayout
.ContentRectangle, this.Padding);
2717
return
InternalLayout
.GetPreferredSize(constrainingSize - Padding.Size) + Padding.Size;
3008
InternalLayout
.PerformLayout();
winforms\Managed\System\WinForms\ToolStripLabel.cs (3)
307
renderer.DrawItemImage(new ToolStripItemImageRenderEventArgs(e.Graphics, this,
InternalLayout
.ImageRectangle));
335
Rectangle textRect =
InternalLayout
.TextRectangle;
336
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, this.Text, textRect, textColor, font,
InternalLayout
.TextFormat));
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (8)
1075
ToolStripMenuItemInternalLayout menuItemInternalLayout = this.
InternalLayout
as ToolStripMenuItemInternalLayout;
1100
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, this.Text,
InternalLayout
.TextRectangle, textColor, this.Font, (rightToLeft) ? ContentAlignment.MiddleRight : ContentAlignment.MiddleLeft));
1107
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, GetShortcutText(),
InternalLayout
.TextRectangle, textColor, this.Font, (rightToLeft) ? ContentAlignment.MiddleLeft : ContentAlignment.MiddleRight));
1120
renderer.DrawItemImage(new ToolStripItemImageRenderEventArgs(g, this,
InternalLayout
.ImageRectangle));
1129
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, this.Text,
InternalLayout
.TextRectangle, textColor, this.Font,
InternalLayout
.TextFormat));
1133
renderer.DrawItemImage(new ToolStripItemImageRenderEventArgs(g, this,
InternalLayout
.ImageRectangle));
1185
ToolStripMenuItemInternalLayout internalLayout =
InternalLayout
as ToolStripMenuItemInternalLayout;
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
319
if (
InternalLayout
!= null /*if layout is invalid - calls CreateInternalLayout - which resets splitButtonButtonLayout to null*/
winforms\Managed\System\WinForms\ToolStripStatusLabel.cs (1)
240
renderer.DrawItemImage(new ToolStripItemImageRenderEventArgs(e.Graphics, this,
InternalLayout
.ImageRectangle));