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)
2118
public override Rectangle
DisplayRectangle
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
142
public override Rectangle
DisplayRectangle
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
57
public override Rectangle
DisplayRectangle
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
354
public override Rectangle
DisplayRectangle
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
190
public override Rectangle
DisplayRectangle
256 references to DisplayRectangle
System.Windows.Forms (8)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
101
Control.
DisplayRectangle
.Location,
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
732
Rectangle r = parent.
DisplayRectangle
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (2)
1034
bounds.Width = ParentInternal.
DisplayRectangle
.Width;
1038
bounds.Height = ParentInternal.
DisplayRectangle
.Height;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
35
displayRect.Width = ToolStripPanel.ParentInternal.
DisplayRectangle
.Width - (ToolStripPanel.Margin.Horizontal + ToolStripPanel.Padding.Horizontal) - Row.Margin.Horizontal;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
36
displayRect.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)
877
Rectangle 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)
78
Rectangle rectangle = Control.
DisplayRectangle
;
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
311
Rectangle displayRectangle = Control.
DisplayRectangle
;
2028
Rectangle displayRect = Control.
DisplayRectangle
;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
848
Rectangle rc = Control.
DisplayRectangle
;
System.Windows.Forms.Tests (225)
System\Windows\Forms\AxHostTests.cs (2)
67
Assert.Equal(new Rectangle(0, 0, 75, 23), control.
DisplayRectangle
);
161
Assert.Equal(new Rectangle(0, 0, 75, 23), control.
DisplayRectangle
);
System\Windows\Forms\ButtonBaseTests.cs (1)
58
Assert.Equal(new Rectangle(0, 0, 75, 23), control.
DisplayRectangle
);
System\Windows\Forms\ButtonTests.cs (1)
61
Assert.Equal(new Rectangle(0, 0, 75, 23), control.
DisplayRectangle
);
System\Windows\Forms\CheckBoxTests.cs (1)
62
Assert.Equal(new Rectangle(0, 0, 104, 24), control.
DisplayRectangle
);
System\Windows\Forms\ComboBoxTests.cs (1)
66
Assert.Equal(new Rectangle(0, 0, 117, control.PreferredHeight - 4), control.
DisplayRectangle
);
System\Windows\Forms\ControlTests.cs (5)
53
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
142
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
238
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
334
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
430
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
System\Windows\Forms\ControlTests.Methods.cs (82)
7418
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
7437
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
7529
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
7548
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
7627
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
7646
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
7745
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
7765
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
7868
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
7890
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8016
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8043
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8205
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8224
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8316
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8335
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8414
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
8433
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
8602
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8622
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8725
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8747
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8873
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8900
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
9019
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
9040
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
9161
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
9182
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
9290
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
9311
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
9427
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
9449
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
9582
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
9606
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
9740
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
9769
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
9817
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
9827
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
9851
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
9867
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
9899
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
9918
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
10374
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10393
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10437
Assert.Equal(0, control.
DisplayRectangle
.X);
10438
Assert.Equal(0, control.
DisplayRectangle
.Y);
10439
Assert.True(control.
DisplayRectangle
.Width > 0);
10440
Assert.True(control.
DisplayRectangle
.Height >= 0);
10470
Assert.Equal(0, control.
DisplayRectangle
.X);
10471
Assert.Equal(0, control.
DisplayRectangle
.Y);
10472
Assert.True(control.
DisplayRectangle
.Width > 0);
10473
Assert.True(control.
DisplayRectangle
.Height >= 0);
10548
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10567
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10640
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10659
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10731
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10753
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10798
Assert.Equal(new Rectangle(0, 0, 3, 4), control.
DisplayRectangle
);
10820
Assert.Equal(new Rectangle(0, 0, 3, 4), control.
DisplayRectangle
);
10876
Assert.Equal(new Rectangle(0, 0, 3, 4), control.
DisplayRectangle
);
10902
Assert.Equal(new Rectangle(0, 0, 3, 4), control.
DisplayRectangle
);
10988
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11007
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11099
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11118
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11197
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
11216
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
11306
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11326
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11429
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11451
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11558
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11585
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11683
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
11702
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
11792
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
11812
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
11927
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
11949
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
12056
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
12083
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
System\Windows\Forms\ControlTests.Properties.cs (78)
2480
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
2499
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
2569
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
2588
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
2654
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
2673
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
2759
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
2779
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
2859
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
2881
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
2984
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
3011
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
3339
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
3349
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
3383
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
3399
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
3446
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
3465
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
5730
Assert.Equal(new Rectangle(0, 0, 0, value), control.
DisplayRectangle
);
5749
Assert.Equal(new Rectangle(0, 0, 0, value), control.
DisplayRectangle
);
5840
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
5859
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
5928
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
5947
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
6036
Assert.Equal(new Rectangle(0, 0, 0, value), control.
DisplayRectangle
);
6056
Assert.Equal(new Rectangle(0, 0, 0, value), control.
DisplayRectangle
);
6148
Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.
DisplayRectangle
);
6170
Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.
DisplayRectangle
);
6285
Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.
DisplayRectangle
);
6312
Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.
DisplayRectangle
);
6693
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
6715
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
6785
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
6807
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
6883
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
6908
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
6994
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
7023
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
7174
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
7196
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
7264
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
7287
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
7366
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
7391
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
7477
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
7507
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
11114
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
DisplayRectangle
);
11133
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
DisplayRectangle
);
11225
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
11244
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
11320
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
11339
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
11435
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
DisplayRectangle
);
11455
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
DisplayRectangle
);
11552
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
11574
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
11694
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
11721
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
12129
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
12150
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
12219
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
12241
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
12317
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
12341
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
12426
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
12455
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
DisplayRectangle
);
13149
Assert.Equal(new Rectangle(0, 0, value, 0), control.
DisplayRectangle
);
13168
Assert.Equal(new Rectangle(0, 0, value, 0), control.
DisplayRectangle
);
13259
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
13278
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
13347
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
13366
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
13455
Assert.Equal(new Rectangle(0, 0, value, 0), control.
DisplayRectangle
);
13475
Assert.Equal(new Rectangle(0, 0, value, 0), control.
DisplayRectangle
);
13567
Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.
DisplayRectangle
);
13589
Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.
DisplayRectangle
);
13704
Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.
DisplayRectangle
);
13731
Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.
DisplayRectangle
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
64
Assert.Equal(new Rectangle(0, 0, 96, control.PreferredHeight - 4), control.
DisplayRectangle
);
System\Windows\Forms\DateTimePickerTests.cs (1)
68
Assert.Equal(new Rectangle(0, 0, 196, control.PreferredHeight - 4), control.
DisplayRectangle
);
System\Windows\Forms\HScrollBarTests.cs (4)
61
Assert.Equal(0, control.
DisplayRectangle
.X);
62
Assert.Equal(0, control.
DisplayRectangle
.Y);
63
Assert.True(control.
DisplayRectangle
.Width > 0);
64
Assert.True(control.
DisplayRectangle
.Height > 0);
System\Windows\Forms\LabelTests.cs (1)
56
Assert.Equal(new Rectangle(0, 0, 100, 23), control.
DisplayRectangle
);
System\Windows\Forms\ListBoxTests.cs (1)
63
Assert.Equal(new Rectangle(0, 0, 116, 92), control.
DisplayRectangle
);
System\Windows\Forms\ListControlTests.cs (1)
60
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
System\Windows\Forms\ListViewTests.cs (1)
71
Assert.Equal(new Rectangle(0, 0, 117, 93), control.
DisplayRectangle
);
System\Windows\Forms\MdiClientTests.cs (11)
46
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
539
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
558
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
641
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
663
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
775
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
802
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
927
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
954
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
1089
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
1116
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
System\Windows\Forms\MonthCalendarTests.cs (8)
70
Assert.Equal(0, control.
DisplayRectangle
.X);
71
Assert.Equal(0, control.
DisplayRectangle
.Y);
72
Assert.True(control.
DisplayRectangle
.Width > 0);
73
Assert.True(control.
DisplayRectangle
.Height > 0);
2528
Assert.Equal(new Rectangle(Point.Empty, size), control.
DisplayRectangle
);
2537
Assert.Equal(new Rectangle(Point.Empty, size), control.
DisplayRectangle
);
2561
Assert.Equal(new Rectangle(Point.Empty, size), control.
DisplayRectangle
);
2573
Assert.Equal(new Rectangle(Point.Empty, size), control.
DisplayRectangle
);
System\Windows\Forms\PictureBoxTests.cs (1)
59
Assert.Equal(new Rectangle(0, 0, 100, 50), control.
DisplayRectangle
);
System\Windows\Forms\RadioButtonTests.cs (1)
61
Assert.Equal(new Rectangle(0, 0, 104, 24), control.
DisplayRectangle
);
System\Windows\Forms\RichTextBoxTests.cs (1)
71
Assert.Equal(new Rectangle(0, 0, 96, 92), control.
DisplayRectangle
);
System\Windows\Forms\ScrollBarTests.cs (1)
54
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
System\Windows\Forms\SplitterTests.cs (1)
55
Assert.Equal(new Rectangle(0, 0, 3, 3), control.
DisplayRectangle
);
System\Windows\Forms\TreeViewTests.cs (1)
57
Assert.Equal(new Rectangle(0, 0, 117, 93), control.
DisplayRectangle
);
System\Windows\Forms\VScrollBarTests.cs (4)
60
Assert.Equal(0, control.
DisplayRectangle
.X);
61
Assert.Equal(0, control.
DisplayRectangle
.Y);
62
Assert.True(control.
DisplayRectangle
.Width > 0);
63
Assert.True(control.
DisplayRectangle
.Height > 0);
System\Windows\Forms\WebBrowserTests.cs (1)
54
Assert.Equal(new Rectangle(0, 0, 250, 250), control.
DisplayRectangle
);
TextBoxBaseTests.cs (6)
6538
Assert.Equal(new Rectangle(0, 0, width - 4, s_preferredHeight - 4), control.
DisplayRectangle
);
6559
Assert.Equal(new Rectangle(0, 0, width - 4, s_preferredHeight - 4), control.
DisplayRectangle
);
6672
Assert.Equal(new Rectangle(0, 0, width - 4, height - 4), control.
DisplayRectangle
);
6693
Assert.Equal(new Rectangle(0, 0, width - 4, height - 4), control.
DisplayRectangle
);
6788
Assert.Equal(new Rectangle(0, 0, width - 4, height - 4), control.
DisplayRectangle
);
6809
Assert.Equal(new Rectangle(0, 0, width - 4, height - 4), control.
DisplayRectangle
);
TextBoxTests.cs (1)
63
Assert.Equal(new Rectangle(0, 0, 96, control.PreferredHeight - 4), control.
DisplayRectangle
);
TrackBarTests.cs (3)
56
Assert.Equal(new Rectangle(0, 0, 104, s_dimension), control.
DisplayRectangle
);
2998
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
3019
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
WebBrowserBaseTests.cs (4)
77
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
96
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
193
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
215
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
System.Windows.Forms.UI.IntegrationTests (16)
ButtonTests.cs (13)
118
var originalButtonPosition = button.
DisplayRectangle
;
132
Assert.Equal(originalButtonPosition, button.
DisplayRectangle
);
142
var originalButtonPosition = button.
DisplayRectangle
;
156
Assert.Equal(originalButtonPosition, button.
DisplayRectangle
);
168
var originalButtonPosition = button.
DisplayRectangle
;
183
Assert.Equal(originalButtonPosition.Location, button.
DisplayRectangle
.Location);
186
Assert.Equal(originalFormSize.Width - originalButtonPosition.Right, form.DisplayRectangle.Width - button.
DisplayRectangle
.Right);
198
var originalButtonPosition = button.
DisplayRectangle
;
213
Assert.Equal(originalButtonPosition.Location, button.
DisplayRectangle
.Location);
216
Assert.Equal(originalFormSize.Height - originalButtonPosition.Bottom, form.DisplayRectangle.Height - button.
DisplayRectangle
.Bottom);
257
Rectangle rect = control2.
DisplayRectangle
;
290
Rectangle rect = control2.
DisplayRectangle
;
293
Rectangle rect1 = control1.
DisplayRectangle
;
DragDropTests.cs (2)
374
var startRect = form.ListDragSource.
DisplayRectangle
;
376
var endRect = form.ListDragTarget.
DisplayRectangle
;
Infra\ControlTestBase.cs (1)
175
var rect = control.
DisplayRectangle
;