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)
1034bounds.Width = ParentInternal.DisplayRectangle.Width; 1038bounds.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; 2028Rectangle 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)
7418Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 7437Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 7529Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 7548Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 7627Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 7646Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 7745Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 7765Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 7868Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 7890Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8016Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8043Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8205Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8224Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8316Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8335Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8414Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 8433Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 8602Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8622Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8725Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8747Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8873Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 8900Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 9019Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 9040Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 9161Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 9182Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 9290Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 9311Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 9427Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 9449Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 9582Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 9606Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 9740Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 9769Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.DisplayRectangle); 9817Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9827Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9851Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9867Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9899Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9918Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 10374Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10393Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10437Assert.Equal(0, control.DisplayRectangle.X); 10438Assert.Equal(0, control.DisplayRectangle.Y); 10439Assert.True(control.DisplayRectangle.Width > 0); 10440Assert.True(control.DisplayRectangle.Height >= 0); 10470Assert.Equal(0, control.DisplayRectangle.X); 10471Assert.Equal(0, control.DisplayRectangle.Y); 10472Assert.True(control.DisplayRectangle.Width > 0); 10473Assert.True(control.DisplayRectangle.Height >= 0); 10548Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10567Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10640Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10659Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10731Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10753Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10798Assert.Equal(new Rectangle(0, 0, 3, 4), control.DisplayRectangle); 10820Assert.Equal(new Rectangle(0, 0, 3, 4), control.DisplayRectangle); 10876Assert.Equal(new Rectangle(0, 0, 3, 4), control.DisplayRectangle); 10902Assert.Equal(new Rectangle(0, 0, 3, 4), control.DisplayRectangle); 10988Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11007Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11099Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11118Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11197Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 11216Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.DisplayRectangle); 11306Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11326Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11429Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11451Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11558Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11585Assert.Equal(new Rectangle(0, 0, width, height), control.DisplayRectangle); 11683Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle); 11702Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle); 11792Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle); 11812Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle); 11927Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle); 11949Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle); 12056Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.DisplayRectangle); 12083Assert.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)
374var startRect = form.ListDragSource.DisplayRectangle; 376var endRect = form.ListDragTarget.DisplayRectangle;
Infra\ControlTestBase.cs (1)
175var rect = control.DisplayRectangle;