7 writes to textBounds
System.Windows.Forms (7)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (7)
1326
layout.
textBounds
= LayoutUtils.Align(textSize, maxBounds, textAlign);
1349
LayoutUtils.SplitRegion(maxCombinedBounds, imageSize, (AnchorStyles) textImageRelation, out layout.imageBounds, out layout.
textBounds
);
1352
LayoutUtils.SplitRegion(maxCombinedBounds, textSize, (AnchorStyles) LayoutUtils.GetOppositeTextImageRelation(textImageRelation), out layout.
textBounds
, out layout.imageBounds);
1355
LayoutUtils.SplitRegion(combinedBounds, imageSize, (AnchorStyles) textImageRelation, out layout.imageBounds, out layout.
textBounds
);
1356
LayoutUtils.ExpandRegionsToFillBounds(maxCombinedBounds, (AnchorStyles) textImageRelation, ref layout.imageBounds, ref layout.
textBounds
);
1361
layout.
textBounds
= LayoutUtils.Align(textSize, layout.textBounds, textAlign);
1395
layout.
textBounds
= Rectangle.Intersect(layout.textBounds, layout.field);
38 references to textBounds
System.Windows.Forms (38)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (34)
620
Rectangle r = layout.
textBounds
;
1130
Rectangle textAdjusted = new Rectangle(layout.
textBounds
.X - 1, layout.
textBounds
.Y - 1,
1131
layout.
textBounds
.Width + 2, layout.
textBounds
.Height + 3);
1361
layout.textBounds = LayoutUtils.Align(textSize, layout.
textBounds
, textAlign);
1374
int textBottom = Math.Min(layout.
textBounds
.Bottom, layout.field.Bottom);
1375
layout.
textBounds
.Y = Math.Max(Math.Min(layout.
textBounds
.Y, layout.field.Y + (layout.field.Height - layout.
textBounds
.Height)/2), layout.field.Y);
1376
layout.
textBounds
.Height = textBottom - layout.
textBounds
.Y;
1380
int textRight = Math.Min(layout.
textBounds
.Right, layout.field.Right);
1381
layout.
textBounds
.X = Math.Max(Math.Min(layout.
textBounds
.X, layout.field.X + (layout.field.Width - layout.
textBounds
.Width)/2), layout.field.X);
1382
layout.
textBounds
.Width = textRight - layout.
textBounds
.X;
1386
layout.imageBounds.Width = Math.Max(0, Math.Min(maxBounds.Width - layout.
textBounds
.Width, layout.imageBounds.Width));
1387
layout.
textBounds
.X = layout.imageBounds.X + layout.imageBounds.Width;
1391
layout.imageBounds.Height = Math.Max(0, Math.Min(maxBounds.Height - layout.
textBounds
.Height, layout.imageBounds.Height));
1392
layout.
textBounds
.Y = layout.imageBounds.Y + layout.imageBounds.Height;
1395
layout.textBounds = Rectangle.Intersect(layout.
textBounds
, layout.field);
1397
layout.
textBounds
.Y--;
1400
layout.
textBounds
.Offset(1, 1);
1411
layout.
textBounds
.X++;
1421
bottom = Math.Min(layout.
textBounds
.Bottom, maxBounds.Bottom);
1422
layout.
textBounds
.Y = Math.Max(layout.
textBounds
.Y, maxBounds.Y);
1427
bottom = Math.Min(layout.
textBounds
.Bottom, layout.field.Bottom);
1428
layout.
textBounds
.Y = Math.Max(layout.
textBounds
.Y, layout.field.Y);
1430
layout.
textBounds
.Height = bottom - layout.
textBounds
.Y;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (3)
32
layout.
textBounds
.Offset(-1, -1);
45
layout.focus.Width = layout.
textBounds
.Width + layout.imageBounds.Width - 1;
46
layout.focus.Intersect(layout.
textBounds
);
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
4654
Rectangle textRect = LayoutData.
textBounds
;