3 writes to displayRect
System.Windows.Forms (3)
winforms\Managed\System\WinForms\ScrollableControl.cs (3)
641
displayRect
= ClientRectangle;
644
displayRect
= new Rectangle(displayRect.X, displayRect.Y, this.HorizontalScroll.Maximum, this.displayRect.Height);
647
displayRect
= new Rectangle(displayRect.X, displayRect.Y, this.displayRect.Width, this.VerticalScroll.Maximum);
51 references to displayRect
System.Windows.Forms (51)
winforms\Managed\System\WinForms\ScrollableControl.cs (51)
266
if (!
displayRect
.IsEmpty) {
267
rect.X =
displayRect
.X;
268
rect.Y =
displayRect
.Y;
270
rect.Width =
displayRect
.Width;
273
rect.Height =
displayRect
.Height;
640
if (
displayRect
.IsEmpty) {
644
displayRect = new Rectangle(
displayRect
.X,
displayRect
.Y, this.HorizontalScroll.Maximum, this.
displayRect
.Height);
647
displayRect = new Rectangle(
displayRect
.X,
displayRect
.Y, this.
displayRect
.Width, this.VerticalScroll.Maximum);
649
return
displayRect
;
710
int pos = -
displayRect
.Y;
711
int maxPos = -(client.Height -
displayRect
.Height);
716
SetDisplayRectLocation(
displayRect
.X, -pos);
725
int pos = -
displayRect
.X;
726
int maxPos = -(client.Width -
displayRect
.Width);
731
SetDisplayRectLocation(-pos,
displayRect
.Y);
763
PaintTransparentBackground(e,
displayRect
);
765
ControlPaint.DrawBackgroundImage(e.Graphics, BackgroundImage, BackColor, BackgroundImageLayout,
displayRect
,
displayRect
,
displayRect
.Location);
846
Rectangle displayRectangle =
displayRect
;
871
displayRect
.X = x;
872
displayRect
.Y = y;
946
int xCalc =
displayRect
.X;
947
int yCalc =
displayRect
.Y;
959
xCalc =
displayRect
.X + xMargin - bounds.X;
963
xCalc = client.Width - (bounds.X + bounds.Width + xMargin -
displayRect
.X);
965
if (bounds.X + xCalc -
displayRect
.X < xMargin) {
966
xCalc =
displayRect
.X + xMargin - bounds.X;
971
yCalc =
displayRect
.Y + yMargin - bounds.Y;
975
yCalc = client.Height - (bounds.Y + bounds.Height + yMargin -
displayRect
.Y);
977
if (bounds.Y + yCalc -
displayRect
.Y < yMargin) {
978
yCalc =
displayRect
.Y + yMargin - bounds.Y;
1089
int x =
displayRect
.X;
1090
int y =
displayRect
.Y;
1132
if (
displayRect
.Width != width
1133
||
displayRect
.Height != height) {
1135
displayRect
.Width = width;
1136
displayRect
.Height = height;
1146
int x =
displayRect
.X;
1147
int y =
displayRect
.Y;
1224
Rectangle displayRect = this.
displayRect
;
1314
int pos = -
displayRect
.Y;
1317
int maxPos = -(client.Height -
displayRect
.Height);
1370
SetDisplayRectLocation(
displayRect
.X, -pos);
1392
int pos = -
displayRect
.X;
1394
int maxPos = -(client.Width -
displayRect
.Width);
1445
SetDisplayRectLocation(-pos,
displayRect
.Y);