Base:
property
DisplayRectangle
System.Windows.Forms.Control.DisplayRectangle
1 override of DisplayRectangle
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
728public override Rectangle DisplayRectangle
111 references to DisplayRectangle
System.Windows.Forms (10)
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
611Rectangle inflateRect = LayoutUtils.InflateRect(DisplayRectangle, Padding); 635DisplayRectangle.Location);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
732Rectangle rect = base.DisplayRectangle;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
30Rectangle raftingDisplayRectangle = ToolStripPanel.DisplayRectangle;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
31Rectangle raftingDisplayRectangle = ToolStripPanel.DisplayRectangle;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
352Rectangle displayRect = DisplayRectangle;
System\Windows\Forms\Scrolling\HScrollProperties.cs (1)
21private protected override int GetVerticalDisplayPosition(ScrollableControl parent) => parent.DisplayRectangle.Y;
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
218Rectangle displayRectangle = DisplayRectangle; 731/// Allows to set the <see cref="DisplayRectangle" /> to enable the visual scroll effect.
System\Windows\Forms\Scrolling\VScrollProperties.cs (1)
19private protected override int GetHorizontalDisplayPosition(ScrollableControl parent) => parent.DisplayRectangle.X;
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\ComponentTray.cs (1)
1831Rectangle display = DisplayRectangle;
System\Windows\Forms\Design\DesignerFrame.cs (2)
390Rectangle client = DisplayRectangle; 426control.Bounds = DisplayRectangle;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (4)
969Point startingPoint = Table.PointToScreen(Table.DisplayRectangle.Location); 970Rectangle bounds = new(startingPoint, Table.DisplayRectangle.Size); 1075Point loc = BehaviorService.MapAdornerWindowPoint(Table.Handle, Table.DisplayRectangle.Location); 1076Rectangle bounds = new(loc, Table.DisplayRectangle.Size);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
65Assert.Equal(new Rectangle(0, 0, control.Width, control.Height), control.DisplayRectangle);
System.Windows.Forms.Tests (61)
System\Windows\Forms\ContainerControlTests.cs (1)
66Assert.Equal(Rectangle.Empty, control.DisplayRectangle);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
79Assert.Equal(new Rectangle(0, 0, control.ClientSize.Width, control.ClientSize.Height), control.DisplayRectangle);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
62Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle);
System\Windows\Forms\DomainUpDownTests.cs (2)
58_sub.DisplayRectangle.Should().Be(new Rectangle(0, 0, 120, Control.DefaultFont.Height + 7)); 65_sub.DisplayRectangle.Should().Be(new Rectangle(0, 0, 116, Control.DefaultFont.Height + 3));
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
59Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle);
System\Windows\Forms\FormTests.cs (4)
78Assert.Equal(0, control.DisplayRectangle.X); 79Assert.Equal(0, control.DisplayRectangle.Y); 80Assert.True(control.DisplayRectangle.Width > 0); 81Assert.True(control.DisplayRectangle.Height > 0);
System\Windows\Forms\PanelTests.cs (1)
60Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle);
System\Windows\Forms\PropertyGridTests.cs (1)
88Assert.Equal(new Rectangle(0, 0, 130, 130), control.DisplayRectangle);
System\Windows\Forms\ScrollableControlTests.cs (10)
59Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 717Assert.Equal(new Rectangle(1, 2, 66, 74), control.DisplayRectangle); 720Assert.Equal(new Rectangle(1, 2, 66, 74), control.DisplayRectangle); 2335Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 2344Assert.Equal(expectedDisplayRectangleSize, control.DisplayRectangle.Size); 2345Assert.Equal(expectedDisplayRectangleLocation, control.DisplayRectangle.Location); 2403Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 2416Assert.Equal(expectedDisplayRectangleSize, control.DisplayRectangle.Size); 2417Assert.Equal(expectedDisplayRectangleLocation, control.DisplayRectangle.Location); 2543Assert.Equal(expectedDisplayRectangle, control.DisplayRectangle);
System\Windows\Forms\SplitterPanelTests.cs (9)
56Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 465Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 484Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 542Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 564Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 830Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.DisplayRectangle); 849Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.DisplayRectangle); 1187Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 1206Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
65Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle);
System\Windows\Forms\TabPageTests.cs (18)
65Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 174Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 1900Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 1922Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 1990Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 2013Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 2091Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 2116Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 2215Assert.Equal(new Rectangle(0, 0, expected.Width, expected.Height), control.DisplayRectangle); 2245Assert.Equal(new Rectangle(0, 0, expected.Width, expected.Height), control.DisplayRectangle); 4347Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 4368Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 4484Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 4506Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 4639Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 4663Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 4817Assert.Equal(new Rectangle(0, 0, expected.Width, expected.Height), control.DisplayRectangle); 4847Assert.Equal(new Rectangle(0, 0, expected.Width, expected.Height), control.DisplayRectangle);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
62Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 941Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle); 963Assert.Equal(new Rectangle(0, 0, 200, 100), control.DisplayRectangle);
System\Windows\Forms\ToolStripPanelTests.cs (1)
62Assert.Equal(Rectangle.Empty, control.DisplayRectangle);
System\Windows\Forms\UpDownBaseTests.cs (6)
45Assert.Equal(new Rectangle(0, 0, 120, Control.DefaultFont.Height + 7), control.DisplayRectangle); 52Assert.Equal(new Rectangle(0, 0, 116, Control.DefaultFont.Height + 3), control.DisplayRectangle); 2757Assert.Equal(new Rectangle(0, 0, width, Control.DefaultFont.Height + 7), control.DisplayRectangle); 2763Assert.Equal(new Rectangle(0, 0, width - 4, Control.DefaultFont.Height + 3), control.DisplayRectangle); 2789Assert.Equal(new Rectangle(0, 0, width, Control.DefaultFont.Height + 7), control.DisplayRectangle); 2795Assert.Equal(new Rectangle(0, 0, width - 4, Control.DefaultFont.Height + 3), control.DisplayRectangle);
System\Windows\Forms\UserControlTests.cs (1)
66Assert.Equal(new Rectangle(0, 0, 150, 150), control.DisplayRectangle);
System.Windows.Forms.UI.IntegrationTests (32)
ButtonTests.cs (30)
117var originalFormSize = form.DisplayRectangle.Size; 120Point mouseDragHandleOnForm = new(form.DisplayRectangle.Right, form.DisplayRectangle.Top + form.DisplayRectangle.Height / 2); 127.MoveMouseBy(form.DisplayRectangle.Width, 0) 130Assert.True(form.DisplayRectangle.Width > originalFormSize.Width); 131Assert.Equal(originalFormSize.Height, form.DisplayRectangle.Height); 141var originalFormSize = form.DisplayRectangle.Size; 144Point mouseDragHandleOnForm = new(form.DisplayRectangle.Left + form.DisplayRectangle.Width / 2, form.DisplayRectangle.Bottom); 151.MoveMouseBy(0, form.DisplayRectangle.Height) 154Assert.True(form.DisplayRectangle.Height > originalFormSize.Height); 155Assert.Equal(originalFormSize.Width, form.DisplayRectangle.Width); 167var originalFormSize = form.DisplayRectangle.Size; 170Point mouseDragHandleOnForm = new(form.DisplayRectangle.Right, form.DisplayRectangle.Top + form.DisplayRectangle.Height / 2); 177.MoveMouseBy(form.DisplayRectangle.Width, 0) 180Assert.True(form.DisplayRectangle.Width > originalFormSize.Width); 181Assert.Equal(originalFormSize.Height, form.DisplayRectangle.Height); 186Assert.Equal(originalFormSize.Width - originalButtonPosition.Right, form.DisplayRectangle.Width - button.DisplayRectangle.Right); 197var originalFormSize = form.DisplayRectangle.Size; 200Point mouseDragHandleOnForm = new(form.DisplayRectangle.Left + form.DisplayRectangle.Width / 2, form.DisplayRectangle.Bottom); 207.MoveMouseBy(0, form.DisplayRectangle.Height) 210Assert.True(form.DisplayRectangle.Height > originalFormSize.Height); 211Assert.Equal(originalFormSize.Width, form.DisplayRectangle.Width); 216Assert.Equal(originalFormSize.Height - originalButtonPosition.Bottom, form.DisplayRectangle.Height - button.DisplayRectangle.Bottom);
DragDropTests.cs (2)
99var startRect = form.DisplayRectangle; 313var startRect = form.DisplayRectangle;