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