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