Base:
property
DisplayRectangle
System.Windows.Forms.Control.DisplayRectangle
1 override of DisplayRectangle
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
726
public override Rectangle
DisplayRectangle
112 references to DisplayRectangle
System.Windows.Forms (10)
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
611
Rectangle inflateRect = LayoutUtils.InflateRect(
DisplayRectangle
, Padding);
635
DisplayRectangle
.Location);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
730
Rectangle rect = base.
DisplayRectangle
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
30
Rectangle raftingDisplayRectangle = ToolStripPanel.
DisplayRectangle
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
31
Rectangle raftingDisplayRectangle = ToolStripPanel.
DisplayRectangle
;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
352
Rectangle displayRect =
DisplayRectangle
;
System\Windows\Forms\Scrolling\HScrollProperties.cs (1)
21
private protected override int GetVerticalDisplayPosition(ScrollableControl parent) => parent.
DisplayRectangle
.Y;
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
218
Rectangle displayRectangle =
DisplayRectangle
;
731
/// Allows to set the <see cref="
DisplayRectangle
" /> to enable the visual scroll effect.
System\Windows\Forms\Scrolling\VScrollProperties.cs (1)
19
private protected override int GetHorizontalDisplayPosition(ScrollableControl parent) => parent.
DisplayRectangle
.X;
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\ComponentTray.cs (1)
1831
Rectangle display =
DisplayRectangle
;
System\Windows\Forms\Design\DesignerFrame.cs (2)
390
Rectangle client =
DisplayRectangle
;
426
control.Bounds =
DisplayRectangle
;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (4)
969
Point startingPoint = Table.PointToScreen(Table.
DisplayRectangle
.Location);
970
Rectangle bounds = new(startingPoint, Table.
DisplayRectangle
.Size);
1075
Point loc = BehaviorService.MapAdornerWindowPoint(Table.Handle, Table.
DisplayRectangle
.Location);
1076
Rectangle bounds = new(loc, Table.
DisplayRectangle
.Size);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
65
Assert.Equal(new Rectangle(0, 0, control.Width, control.Height), control.
DisplayRectangle
);
System.Windows.Forms.Tests (61)
System\Windows\Forms\ContainerControlTests.cs (1)
66
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
79
Assert.Equal(new Rectangle(0, 0, control.ClientSize.Width, control.ClientSize.Height), control.
DisplayRectangle
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
62
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
System\Windows\Forms\DomainUpDownTests.cs (2)
58
_sub.
DisplayRectangle
.Should().Be(new Rectangle(0, 0, 120, Control.DefaultFont.Height + 7));
65
_sub.
DisplayRectangle
.Should().Be(new Rectangle(0, 0, 116, Control.DefaultFont.Height + 3));
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
59
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
System\Windows\Forms\FormTests.cs (4)
78
Assert.Equal(0, control.
DisplayRectangle
.X);
79
Assert.Equal(0, control.
DisplayRectangle
.Y);
80
Assert.True(control.
DisplayRectangle
.Width > 0);
81
Assert.True(control.
DisplayRectangle
.Height > 0);
System\Windows\Forms\PanelTests.cs (1)
60
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
System\Windows\Forms\PropertyGridTests.cs (1)
88
Assert.Equal(new Rectangle(0, 0, 130, 130), control.
DisplayRectangle
);
System\Windows\Forms\ScrollableControlTests.cs (10)
59
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
717
Assert.Equal(new Rectangle(1, 2, 66, 74), control.
DisplayRectangle
);
720
Assert.Equal(new Rectangle(1, 2, 66, 74), control.
DisplayRectangle
);
2335
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
2344
Assert.Equal(expectedDisplayRectangleSize, control.
DisplayRectangle
.Size);
2345
Assert.Equal(expectedDisplayRectangleLocation, control.
DisplayRectangle
.Location);
2403
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
2416
Assert.Equal(expectedDisplayRectangleSize, control.
DisplayRectangle
.Size);
2417
Assert.Equal(expectedDisplayRectangleLocation, control.
DisplayRectangle
.Location);
2543
Assert.Equal(expectedDisplayRectangle, control.
DisplayRectangle
);
System\Windows\Forms\SplitterPanelTests.cs (9)
56
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
465
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
484
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
542
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
564
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
830
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
DisplayRectangle
);
849
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
DisplayRectangle
);
1187
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
1206
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
65
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
System\Windows\Forms\TabPageTests.cs (18)
65
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
174
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
1900
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
1922
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
1990
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
2013
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
2091
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
2116
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
2215
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.Height), control.
DisplayRectangle
);
2245
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.Height), control.
DisplayRectangle
);
4347
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
4368
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
4484
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
4506
Assert.Equal(new Rectangle(0, 0, width, height), control.
DisplayRectangle
);
4639
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
4663
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
DisplayRectangle
);
4817
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.Height), control.
DisplayRectangle
);
4847
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.Height), control.
DisplayRectangle
);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
62
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
941
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
963
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
DisplayRectangle
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
62
Assert.Equal(Rectangle.Empty, control.
DisplayRectangle
);
System\Windows\Forms\UpDownBaseTests.cs (6)
45
Assert.Equal(new Rectangle(0, 0, 120, Control.DefaultFont.Height + 7), control.
DisplayRectangle
);
52
Assert.Equal(new Rectangle(0, 0, 116, Control.DefaultFont.Height + 3), control.
DisplayRectangle
);
2757
Assert.Equal(new Rectangle(0, 0, width, Control.DefaultFont.Height + 7), control.
DisplayRectangle
);
2763
Assert.Equal(new Rectangle(0, 0, width - 4, Control.DefaultFont.Height + 3), control.
DisplayRectangle
);
2789
Assert.Equal(new Rectangle(0, 0, width, Control.DefaultFont.Height + 7), control.
DisplayRectangle
);
2795
Assert.Equal(new Rectangle(0, 0, width - 4, Control.DefaultFont.Height + 3), control.
DisplayRectangle
);
System\Windows\Forms\UserControlTests.cs (1)
66
Assert.Equal(new Rectangle(0, 0, 150, 150), control.
DisplayRectangle
);
System.Windows.Forms.UI.IntegrationTests (33)
ButtonTests.cs (30)
117
var originalFormSize = form.
DisplayRectangle
.Size;
120
Point mouseDragHandleOnForm = new(form.
DisplayRectangle
.Right, form.
DisplayRectangle
.Top + form.
DisplayRectangle
.Height / 2);
127
.MoveMouseBy(form.
DisplayRectangle
.Width, 0)
130
Assert.True(form.
DisplayRectangle
.Width > originalFormSize.Width);
131
Assert.Equal(originalFormSize.Height, form.
DisplayRectangle
.Height);
141
var originalFormSize = form.
DisplayRectangle
.Size;
144
Point mouseDragHandleOnForm = new(form.
DisplayRectangle
.Left + form.
DisplayRectangle
.Width / 2, form.
DisplayRectangle
.Bottom);
151
.MoveMouseBy(0, form.
DisplayRectangle
.Height)
154
Assert.True(form.
DisplayRectangle
.Height > originalFormSize.Height);
155
Assert.Equal(originalFormSize.Width, form.
DisplayRectangle
.Width);
167
var originalFormSize = form.
DisplayRectangle
.Size;
170
Point mouseDragHandleOnForm = new(form.
DisplayRectangle
.Right, form.
DisplayRectangle
.Top + form.
DisplayRectangle
.Height / 2);
177
.MoveMouseBy(form.
DisplayRectangle
.Width, 0)
180
Assert.True(form.
DisplayRectangle
.Width > originalFormSize.Width);
181
Assert.Equal(originalFormSize.Height, form.
DisplayRectangle
.Height);
186
Assert.Equal(originalFormSize.Width - originalButtonPosition.Right, form.
DisplayRectangle
.Width - button.DisplayRectangle.Right);
197
var originalFormSize = form.
DisplayRectangle
.Size;
200
Point mouseDragHandleOnForm = new(form.
DisplayRectangle
.Left + form.
DisplayRectangle
.Width / 2, form.
DisplayRectangle
.Bottom);
207
.MoveMouseBy(0, form.
DisplayRectangle
.Height)
210
Assert.True(form.
DisplayRectangle
.Height > originalFormSize.Height);
211
Assert.Equal(originalFormSize.Width, form.
DisplayRectangle
.Width);
216
Assert.Equal(originalFormSize.Height - originalButtonPosition.Bottom, form.
DisplayRectangle
.Height - button.DisplayRectangle.Bottom);
DragDropTests.cs (3)
101
var startRect = form.
DisplayRectangle
;
316
var startRect = form.
DisplayRectangle
;
526
var startRect = form.
DisplayRectangle
;