6 implementations of DisplayRectangle
System.Windows.Forms (6)
System\Windows\Forms\Control.cs (1)
1648public virtual Rectangle DisplayRectangle
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
728public override Rectangle DisplayRectangle
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
968Rectangle IArrangedElement.DisplayRectangle => Bounds;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
644Rectangle IArrangedElement.DisplayRectangle
System\Windows\Forms\Layout\ArrangedElement.cs (1)
55public virtual Rectangle DisplayRectangle
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
214Rectangle IArrangedElement.DisplayRectangle
27 references to DisplayRectangle
System.Windows.Forms (27)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
26Rectangle displayRect = ((IArrangedElement)Row).DisplayRectangle;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
27Rectangle displayRect = ((IArrangedElement)Row).DisplayRectangle;
System\Windows\Forms\Layout\DefaultLayout.cs (5)
352Rectangle displayRectangle = container.DisplayRectangle; 380Rectangle remainingBounds = measureOnly ? Rectangle.Empty : container.DisplayRectangle; 748Rectangle parentDisplayRect = element.Container.DisplayRectangle; 988Rectangle displayRect = element.Container!.DisplayRectangle; 1028Rectangle displayRectangle = container.DisplayRectangle;
System\Windows\Forms\Layout\FlowLayout.cs (17)
19CommonProperties.SetLayoutBounds(container, TryCalculatePreferredSize(container, container.DisplayRectangle, measureOnly: false)); 321Debug.Assert(container.Children[0].Bounds.Y == margin.Top + container.DisplayRectangle.Y); 322Debug.Assert(container.Children[0].Bounds.X == margin.Left + container.DisplayRectangle.X); 325Debug.Assert(container.Children[0].Bounds.X == container.DisplayRectangle.X + container.DisplayRectangle.Width - container.Children[0].Bounds.Width - margin.Right); 326Debug.Assert(container.Children[0].Bounds.Y == margin.Top + container.DisplayRectangle.Y); 329Debug.Assert(container.Children[0].Bounds.Y == container.DisplayRectangle.Y + container.DisplayRectangle.Height - container.Children[0].Bounds.Height - margin.Bottom); 330Debug.Assert(container.Children[0].Bounds.X == margin.Left + container.DisplayRectangle.X); 342Debug.Assert(collection[i].Bounds.Y >= container.DisplayRectangle.Y); 343Debug.Assert(collection[i].Bounds.X >= container.DisplayRectangle.X); 346Debug.Assert(collection[i].Bounds.Y >= container.DisplayRectangle.Y); 347Debug.Assert(collection[i].Bounds.X + collection[i].Bounds.Width <= container.DisplayRectangle.X + container.DisplayRectangle.Width); 350Debug.Assert(collection[i].Bounds.Y + collection[i].Bounds.Height <= container.DisplayRectangle.Y + container.DisplayRectangle.Height); 351Debug.Assert(collection[i].Bounds.X >= container.DisplayRectangle.X);
System\Windows\Forms\Layout\TableLayout.cs (3)
105Size containerSize = container.DisplayRectangle.Size - new Size(cellBorderWidth, cellBorderWidth); 113RectangleF displayRect = (RectangleF)container.DisplayRectangle; 162Size containerSize = container.DisplayRectangle.Size - new Size(cellBorderWidth * 2, cellBorderWidth * 2);