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)
1026
bounds.Width = ParentInternal.
DisplayRectangle
.Width;
1030
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
;
2029
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)
7427
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
7446
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
7538
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
7557
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
7636
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
7655
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
7754
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
7774
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
7877
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
7899
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8025
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8052
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8214
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8233
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8325
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8344
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8423
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
8442
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
8611
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8631
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8734
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8756
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8882
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
8909
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
9028
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
9049
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
9170
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
9191
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
9299
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
9320
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
9436
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
9458
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
9591
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
9615
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
9749
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
9778
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
9826
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
9836
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
9860
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
9876
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
9908
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
9927
Assert.Equal(new Rectangle(Point.Empty, value), control.
DisplayRectangle
);
10383
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10402
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10446
Assert.Equal(0, control.
DisplayRectangle
.X);
10447
Assert.Equal(0, control.
DisplayRectangle
.Y);
10448
Assert.True(control.
DisplayRectangle
.Width > 0);
10449
Assert.True(control.
DisplayRectangle
.Height >= 0);
10479
Assert.Equal(0, control.
DisplayRectangle
.X);
10480
Assert.Equal(0, control.
DisplayRectangle
.Y);
10481
Assert.True(control.
DisplayRectangle
.Width > 0);
10482
Assert.True(control.
DisplayRectangle
.Height >= 0);
10557
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10576
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10649
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10668
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10740
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10762
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
10807
Assert.Equal(new Rectangle(0, 0, 3, 4), control.
DisplayRectangle
);
10829
Assert.Equal(new Rectangle(0, 0, 3, 4), control.
DisplayRectangle
);
10885
Assert.Equal(new Rectangle(0, 0, 3, 4), control.
DisplayRectangle
);
10911
Assert.Equal(new Rectangle(0, 0, 3, 4), control.
DisplayRectangle
);
10997
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11016
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11108
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11127
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11206
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
11225
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
DisplayRectangle
);
11315
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11335
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11438
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11460
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11567
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11594
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
11692
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
11711
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
11801
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
11821
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
11936
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
11958
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
12065
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
DisplayRectangle
);
12092
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)
378
var startRect = form.ListDragSource.
DisplayRectangle
;
380
var endRect = form.ListDragTarget.
DisplayRectangle
;
Infra\ControlTestBase.cs (1)
175
var rect = control.
DisplayRectangle
;