Implemented interface member:
property
DisplayRectangle
System.Windows.Forms.Layout.IArrangedElement.DisplayRectangle
5 overrides of DisplayRectangle
System.Windows.Forms (5)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2118public override Rectangle DisplayRectangle
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
142public override Rectangle DisplayRectangle
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
57public override Rectangle DisplayRectangle
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
354public override Rectangle DisplayRectangle
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
190public override Rectangle DisplayRectangle
256 references to DisplayRectangle
System.Windows.Forms (8)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
101Control.DisplayRectangle.Location,
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
732Rectangle r = parent.DisplayRectangle;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (2)
1026bounds.Width = ParentInternal.DisplayRectangle.Width; 1030bounds.Height = ParentInternal.DisplayRectangle.Height;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
35displayRect.Width = ToolStripPanel.ParentInternal.DisplayRectangle.Width - (ToolStripPanel.Margin.Horizontal + ToolStripPanel.Padding.Horizontal) - Row.Margin.Horizontal;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
36displayRect.Height = ToolStripPanel.ParentInternal.DisplayRectangle.Height - (ToolStripPanel.Margin.Vertical + ToolStripPanel.Padding.Vertical) - Row.Margin.Vertical;
System\Windows\Forms\Layout\CommonProperties.cs (1)
125/// Typically the padding is accounted for in either the <see cref="Control.DisplayRectangle"/> calculation
System\Windows\Forms\Layout\DefaultLayout.cs (1)
877Rectangle displayRectangle = control.Parent!.DisplayRectangle;
System.Windows.Forms.Design (7)
System\ComponentModel\Design\DesignerActionUI.cs (2)
649!_behaviorService.AdornerWindowControl.DisplayRectangle.IntersectsWith(glyph.Bounds)) 716_behaviorService.AdornerWindowControl.DisplayRectangle.IntersectsWith(glyph.Bounds))
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
97=> DesignerFrameValid ? DesignerFrame.DisplayRectangle : Rectangle.Empty;
System\Windows\Forms\Design\GroupBoxDesigner.cs (1)
78Rectangle rectangle = Control.DisplayRectangle;
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
311Rectangle displayRectangle = Control.DisplayRectangle; 2029Rectangle displayRect = Control.DisplayRectangle;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
848Rectangle rc = Control.DisplayRectangle;
System.Windows.Forms.Tests (225)
System\Windows\Forms\AxHostTests.cs (2)
67Assert.Equal(new Rectangle(0, 0, 75, 23), control.DisplayRectangle); 161Assert.Equal(new Rectangle(0, 0, 75, 23), control.DisplayRectangle);
System\Windows\Forms\ButtonBaseTests.cs (1)
58Assert.Equal(new Rectangle(0, 0, 75, 23), control.DisplayRectangle);
System\Windows\Forms\ButtonTests.cs (1)
61Assert.Equal(new Rectangle(0, 0, 75, 23), control.DisplayRectangle);
System\Windows\Forms\CheckBoxTests.cs (1)
62Assert.Equal(new Rectangle(0, 0, 104, 24), control.DisplayRectangle);
System\Windows\Forms\ComboBoxTests.cs (1)
66Assert.Equal(new Rectangle(0, 0, 117, control.PreferredHeight - 4), control.DisplayRectangle);
System\Windows\Forms\ControlTests.cs (5)
53Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 142Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 238Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 334Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 430Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle);
System\Windows\Forms\ControlTests.Methods.cs (82)
7427Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 7446Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 7538Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 7557Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 7636Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 7655Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 7754Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 7774Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 7877Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 7899Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8025Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8052Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8214Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8233Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8325Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8344Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8423Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 8442Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 8611Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8631Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8734Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8756Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8882Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8909Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 9028Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 9049Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 9170Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 9191Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 9299Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 9320Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 9436Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 9458Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 9591Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 9615Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 9749Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 9778Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 9826Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9836Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9860Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9876Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9908Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9927Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 10383Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10402Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10446Assert.Equal(0, control.DisplayRectangle.X); 10447Assert.Equal(0, control.DisplayRectangle.Y); 10448Assert.True(control.DisplayRectangle.Width > 0); 10449Assert.True(control.DisplayRectangle.Height >= 0); 10479Assert.Equal(0, control.DisplayRectangle.X); 10480Assert.Equal(0, control.DisplayRectangle.Y); 10481Assert.True(control.DisplayRectangle.Width > 0); 10482Assert.True(control.DisplayRectangle.Height >= 0); 10557Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10576Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10649Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10668Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10740Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10762Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10807Assert.Equal(new Rectangle(0, 0, 3, 4), control.DisplayRectangle); 10829Assert.Equal(new Rectangle(0, 0, 3, 4), control.DisplayRectangle); 10885Assert.Equal(new Rectangle(0, 0, 3, 4), control.DisplayRectangle); 10911Assert.Equal(new Rectangle(0, 0, 3, 4), control.DisplayRectangle); 10997Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11016Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11108Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11127Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11206Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 11225Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 11315Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11335Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11438Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11460Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11567Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11594Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11692Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle); 11711Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle); 11801Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle); 11821Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle); 11936Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle); 11958Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle); 12065Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle); 12092Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle);
System\Windows\Forms\ControlTests.Properties.cs (78)
2480Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 2499Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 2569Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 2588Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 2654Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 2673Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 2759Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 2779Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 2859Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 2881Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 2984Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 3011Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 3339Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 3349Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 3383Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 3399Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 3446Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 3465Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 5730Assert.Equal(new Rectangle(0, 0, 0, value), control.DisplayRectangle); 5749Assert.Equal(new Rectangle(0, 0, 0, value), control.DisplayRectangle); 5840Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 5859Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 5928Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 5947Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 6036Assert.Equal(new Rectangle(0, 0, 0, value), control.DisplayRectangle); 6056Assert.Equal(new Rectangle(0, 0, 0, value), control.DisplayRectangle); 6148Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.DisplayRectangle); 6170Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.DisplayRectangle); 6285Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.DisplayRectangle); 6312Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.DisplayRectangle); 6693Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 6715Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 6785Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 6807Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 6883Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 6908Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 6994Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 7023Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 7174Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 7196Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 7264Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 7287Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 7366Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 7391Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 7477Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 7507Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 11114Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.DisplayRectangle); 11133Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.DisplayRectangle); 11225Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 11244Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 11320Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 11339Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 11435Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.DisplayRectangle); 11455Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.DisplayRectangle); 11552Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 11574Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 11694Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 11721Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 12129Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 12150Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 12219Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 12241Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 12317Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 12341Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 12426Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 12455Assert.Equal(new Rectangle(0, 0, 0, 0), control.DisplayRectangle); 13149Assert.Equal(new Rectangle(0, 0, value, 0), control.DisplayRectangle); 13168Assert.Equal(new Rectangle(0, 0, value, 0), control.DisplayRectangle); 13259Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 13278Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 13347Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 13366Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 13455Assert.Equal(new Rectangle(0, 0, value, 0), control.DisplayRectangle); 13475Assert.Equal(new Rectangle(0, 0, value, 0), control.DisplayRectangle); 13567Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.DisplayRectangle); 13589Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.DisplayRectangle); 13704Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.DisplayRectangle); 13731Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.DisplayRectangle);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
64Assert.Equal(new Rectangle(0, 0, 96, control.PreferredHeight - 4), control.DisplayRectangle);
System\Windows\Forms\DateTimePickerTests.cs (1)
68Assert.Equal(new Rectangle(0, 0, 196, control.PreferredHeight - 4), control.DisplayRectangle);
System\Windows\Forms\HScrollBarTests.cs (4)
61Assert.Equal(0, control.DisplayRectangle.X); 62Assert.Equal(0, control.DisplayRectangle.Y); 63Assert.True(control.DisplayRectangle.Width > 0); 64Assert.True(control.DisplayRectangle.Height > 0);
System\Windows\Forms\LabelTests.cs (1)
56Assert.Equal(new Rectangle(0, 0, 100, 23), control.DisplayRectangle);
System\Windows\Forms\ListBoxTests.cs (1)
63Assert.Equal(new Rectangle(0, 0, 116, 92), control.DisplayRectangle);
System\Windows\Forms\ListControlTests.cs (1)
60Assert.Equal(Rectangle.Empty, control.DisplayRectangle);
System\Windows\Forms\ListViewTests.cs (1)
71Assert.Equal(new Rectangle(0, 0, 117, 93), control.DisplayRectangle);
System\Windows\Forms\MdiClientTests.cs (11)
46Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 539Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 558Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 641Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 663Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 775Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 802Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 927Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 954Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 1089Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 1116Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle);
System\Windows\Forms\MonthCalendarTests.cs (8)
70Assert.Equal(0, control.DisplayRectangle.X); 71Assert.Equal(0, control.DisplayRectangle.Y); 72Assert.True(control.DisplayRectangle.Width > 0); 73Assert.True(control.DisplayRectangle.Height > 0); 2528Assert.Equal(new Rectangle(Point.Empty, size), control.DisplayRectangle); 2537Assert.Equal(new Rectangle(Point.Empty, size), control.DisplayRectangle); 2561Assert.Equal(new Rectangle(Point.Empty, size), control.DisplayRectangle); 2573Assert.Equal(new Rectangle(Point.Empty, size), control.DisplayRectangle);
System\Windows\Forms\PictureBoxTests.cs (1)
59Assert.Equal(new Rectangle(0, 0, 100, 50), control.DisplayRectangle);
System\Windows\Forms\RadioButtonTests.cs (1)
61Assert.Equal(new Rectangle(0, 0, 104, 24), control.DisplayRectangle);
System\Windows\Forms\RichTextBoxTests.cs (1)
71Assert.Equal(new Rectangle(0, 0, 96, 92), control.DisplayRectangle);
System\Windows\Forms\ScrollBarTests.cs (1)
54Assert.Equal(Rectangle.Empty, control.DisplayRectangle);
System\Windows\Forms\SplitterTests.cs (1)
55Assert.Equal(new Rectangle(0, 0, 3, 3), control.DisplayRectangle);
System\Windows\Forms\TreeViewTests.cs (1)
57Assert.Equal(new Rectangle(0, 0, 117, 93), control.DisplayRectangle);
System\Windows\Forms\VScrollBarTests.cs (4)
60Assert.Equal(0, control.DisplayRectangle.X); 61Assert.Equal(0, control.DisplayRectangle.Y); 62Assert.True(control.DisplayRectangle.Width > 0); 63Assert.True(control.DisplayRectangle.Height > 0);
System\Windows\Forms\WebBrowserTests.cs (1)
54Assert.Equal(new Rectangle(0, 0, 250, 250), control.DisplayRectangle);
TextBoxBaseTests.cs (6)
6538Assert.Equal(new Rectangle(0, 0, width - 4, s_preferredHeight - 4), control.DisplayRectangle); 6559Assert.Equal(new Rectangle(0, 0, width - 4, s_preferredHeight - 4), control.DisplayRectangle); 6672Assert.Equal(new Rectangle(0, 0, width - 4, height - 4), control.DisplayRectangle); 6693Assert.Equal(new Rectangle(0, 0, width - 4, height - 4), control.DisplayRectangle); 6788Assert.Equal(new Rectangle(0, 0, width - 4, height - 4), control.DisplayRectangle); 6809Assert.Equal(new Rectangle(0, 0, width - 4, height - 4), control.DisplayRectangle);
TextBoxTests.cs (1)
63Assert.Equal(new Rectangle(0, 0, 96, control.PreferredHeight - 4), control.DisplayRectangle);
TrackBarTests.cs (3)
56Assert.Equal(new Rectangle(0, 0, 104, s_dimension), control.DisplayRectangle); 2998Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 3019Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle);
WebBrowserBaseTests.cs (4)
77Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 96Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 193Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 215Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle);
System.Windows.Forms.UI.IntegrationTests (16)
ButtonTests.cs (13)
118var originalButtonPosition = button.DisplayRectangle; 132Assert.Equal(originalButtonPosition, button.DisplayRectangle); 142var originalButtonPosition = button.DisplayRectangle; 156Assert.Equal(originalButtonPosition, button.DisplayRectangle); 168var originalButtonPosition = button.DisplayRectangle; 183Assert.Equal(originalButtonPosition.Location, button.DisplayRectangle.Location); 186Assert.Equal(originalFormSize.Width - originalButtonPosition.Right, form.DisplayRectangle.Width - button.DisplayRectangle.Right); 198var originalButtonPosition = button.DisplayRectangle; 213Assert.Equal(originalButtonPosition.Location, button.DisplayRectangle.Location); 216Assert.Equal(originalFormSize.Height - originalButtonPosition.Bottom, form.DisplayRectangle.Height - button.DisplayRectangle.Bottom); 257Rectangle rect = control2.DisplayRectangle; 290Rectangle rect = control2.DisplayRectangle; 293Rectangle rect1 = control1.DisplayRectangle;
DragDropTests.cs (2)
378var startRect = form.ListDragSource.DisplayRectangle; 380var endRect = form.ListDragTarget.DisplayRectangle;
Infra\ControlTestBase.cs (1)
175var rect = control.DisplayRectangle;