Base:
property
DisplayRectangle
System.Windows.Forms.Control.DisplayRectangle
54 references to DisplayRectangle
System.Windows.Forms (3)
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (1)
48
tabPage.Bounds = _owner.
DisplayRectangle
;
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1613
Rectangle rect =
DisplayRectangle
;
1822
tabPages[index].Bounds =
DisplayRectangle
;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\TabControlDesigner.cs (2)
181
return !tc.
DisplayRectangle
.Contains(hitTest);
574
if (!tc.
DisplayRectangle
.Contains(dropPoint))
System.Windows.Forms.Tests (49)
System\Windows\Forms\TabControl.ControlCollectionTests.cs (14)
202
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
229
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
233
Assert.Equal(owner.
DisplayRectangle
, value2.Bounds);
270
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
274
Assert.Equal(owner.
DisplayRectangle
, value2.Bounds);
517
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
547
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
551
Assert.Equal(owner.
DisplayRectangle
, value2.Bounds);
594
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
598
Assert.Equal(owner.
DisplayRectangle
, value2.Bounds);
1155
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
1159
Assert.Equal(owner.
DisplayRectangle
, value2.Bounds);
1178
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
1182
Assert.Equal(owner.
DisplayRectangle
, value2.Bounds);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (20)
191
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
219
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
223
Assert.Equal(owner.
DisplayRectangle
, value2.Bounds);
261
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
265
Assert.Equal(owner.
DisplayRectangle
, value2.Bounds);
512
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
543
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
547
Assert.Equal(owner.
DisplayRectangle
, value2.Bounds);
591
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
595
Assert.Equal(owner.
DisplayRectangle
, value2.Bounds);
2128
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
2156
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
2160
Assert.Equal(owner.
DisplayRectangle
, value2.Bounds);
2200
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
2204
Assert.Equal(owner.
DisplayRectangle
, value2.Bounds);
2461
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
2492
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
2496
Assert.Equal(owner.
DisplayRectangle
, value2.Bounds);
2542
Assert.Equal(owner.
DisplayRectangle
, value1.Bounds);
2546
Assert.Equal(owner.
DisplayRectangle
, value2.Bounds);
System\Windows\Forms\TabControlTests.cs (12)
742
Rectangle displayRectangle = control.
DisplayRectangle
;
745
Assert.Equal(200 - displayRectangle.X * 2, control.
DisplayRectangle
.Width);
746
Assert.Equal(100 - displayRectangle.Y * 2, control.
DisplayRectangle
.Height);
748
Assert.Equal(displayRectangle, control.
DisplayRectangle
);
763
Rectangle displayRectangle = control.
DisplayRectangle
;
766
Assert.Equal(200 - displayRectangle.X * 2, control.
DisplayRectangle
.Width);
767
Assert.Equal(100 - displayRectangle.Y * 2, control.
DisplayRectangle
.Height);
768
Assert.Equal(displayRectangle, control.
DisplayRectangle
);
782
Rectangle displayRectangle = control.
DisplayRectangle
;
785
Assert.Equal(200 - displayRectangle.X * 2, control.
DisplayRectangle
.Width);
786
Assert.Equal(100 - displayRectangle.Y * 2, control.
DisplayRectangle
.Height);
788
Assert.Equal(displayRectangle, control.
DisplayRectangle
);
System\Windows\Forms\TabPageTests.cs (3)
2173
Rectangle expected = parent.
DisplayRectangle
;
4216
Assert.Equal(parent.
DisplayRectangle
, e.ClipRectangle);
4726
Rectangle expected = parent.
DisplayRectangle
;