7 writes to TextBounds
System.Windows.Forms (7)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (7)
503
layout.
TextBounds
= LayoutUtils.Align(textSize, maxBounds, textAlign);
533
out layout.
TextBounds
);
542
out layout.
TextBounds
,
554
out layout.
TextBounds
);
559
ref layout.
TextBounds
);
564
layout.
TextBounds
= LayoutUtils.Align(textSize, layout.TextBounds, textAlign);
614
layout.
TextBounds
= Rectangle.Intersect(layout.TextBounds, layout.Field);
38 references to TextBounds
System.Windows.Forms (38)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
453
Rectangle r = layout.
TextBounds
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (33)
281
layout.
TextBounds
.X - 1,
282
layout.
TextBounds
.Y - 1,
283
layout.
TextBounds
.Width + 2,
284
layout.
TextBounds
.Height + 3);
564
layout.TextBounds = LayoutUtils.Align(textSize, layout.
TextBounds
, textAlign);
578
int textBottom = Math.Min(layout.
TextBounds
.Bottom, layout.Field.Bottom);
579
layout.
TextBounds
.Y = Math.Max(
580
Math.Min(layout.
TextBounds
.Y, layout.Field.Y + (layout.Field.Height - layout.
TextBounds
.Height) / 2),
582
layout.
TextBounds
.Height = textBottom - layout.
TextBounds
.Y;
588
int textRight = Math.Min(layout.
TextBounds
.Right, layout.Field.Right);
589
layout.
TextBounds
.X = Math.Max(
590
Math.Min(layout.
TextBounds
.X, layout.Field.X + (layout.Field.Width - layout.
TextBounds
.Width) / 2),
592
layout.
TextBounds
.Width = textRight - layout.
TextBounds
.X;
600
Math.Min(maxBounds.Width - layout.
TextBounds
.Width, layout.ImageBounds.Width));
601
layout.
TextBounds
.X = layout.ImageBounds.X + layout.ImageBounds.Width;
609
Math.Min(maxBounds.Height - layout.
TextBounds
.Height, layout.ImageBounds.Height));
610
layout.
TextBounds
.Y = layout.ImageBounds.Y + layout.ImageBounds.Height;
614
layout.TextBounds = Rectangle.Intersect(layout.
TextBounds
, layout.Field);
617
layout.
TextBounds
.Y--;
622
layout.
TextBounds
.Offset(1, 1);
635
layout.
TextBounds
.X++;
645
bottom = Math.Min(layout.
TextBounds
.Bottom, maxBounds.Bottom);
646
layout.
TextBounds
.Y = Math.Max(layout.
TextBounds
.Y, maxBounds.Y);
652
bottom = Math.Min(layout.
TextBounds
.Bottom, layout.Field.Bottom);
653
layout.
TextBounds
.Y = Math.Max(layout.
TextBounds
.Y, layout.Field.Y);
656
layout.
TextBounds
.Height = bottom - layout.
TextBounds
.Y;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (3)
29
layout.
TextBounds
.Offset(-1, -1);
46
layout.Focus.Width = layout.
TextBounds
.Width + layout.ImageBounds.Width - 1;
47
layout.Focus.Intersect(layout.
TextBounds
);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
61
Rectangle textRect = layoutData.
TextBounds
;