3 writes to _displayRect
System.Windows.Forms (3)
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
555
_displayRect
= ClientRectangle;
560
_displayRect
= new Rectangle(_displayRect.X, _displayRect.Y, HorizontalScroll.Maximum, _displayRect.Height);
565
_displayRect
= new Rectangle(_displayRect.X, _displayRect.Y, _displayRect.Width, VerticalScroll.Maximum);
51 references to _displayRect
System.Windows.Forms (51)
System\Windows\Forms\Scrolling\ScrollableControl.cs (51)
195
if (!
_displayRect
.IsEmpty)
197
rect.X =
_displayRect
.X;
198
rect.Y =
_displayRect
.Y;
201
rect.Width =
_displayRect
.Width;
206
rect.Height =
_displayRect
.Height;
553
if (
_displayRect
.IsEmpty)
560
_displayRect = new Rectangle(
_displayRect
.X,
_displayRect
.Y, HorizontalScroll.Maximum,
_displayRect
.Height);
565
_displayRect = new Rectangle(
_displayRect
.X,
_displayRect
.Y,
_displayRect
.Width, VerticalScroll.Maximum);
568
return
_displayRect
;
617
int pos = -
_displayRect
.Y;
618
int maxPos = -(client.Height -
_displayRect
.Height);
623
SetDisplayRectLocation(
_displayRect
.X, -pos);
633
int pos = -
_displayRect
.X;
634
int maxPos = -(client.Width -
_displayRect
.Width);
639
SetDisplayRectLocation(-pos,
_displayRect
.Y);
672
PaintTransparentBackground(e,
_displayRect
);
680
_displayRect
,
681
_displayRect
,
682
_displayRect
.Location);
754
Rectangle displayRectangle =
_displayRect
;
788
_displayRect
.X = x;
789
_displayRect
.Y = y;
855
int xCalc =
_displayRect
.X;
856
int yCalc =
_displayRect
.Y;
873
xCalc =
_displayRect
.X + xMargin - bounds.X;
877
xCalc = client.Width - (bounds.X + bounds.Width + xMargin -
_displayRect
.X);
879
if (bounds.X + xCalc -
_displayRect
.X < xMargin)
881
xCalc =
_displayRect
.X + xMargin - bounds.X;
887
yCalc =
_displayRect
.Y + yMargin - bounds.Y;
891
yCalc = client.Height - (bounds.Y + bounds.Height + yMargin -
_displayRect
.Y);
892
if (bounds.Y + yCalc -
_displayRect
.Y < yMargin)
894
yCalc =
_displayRect
.Y + yMargin - bounds.Y;
999
int x =
_displayRect
.X;
1000
int y =
_displayRect
.Y;
1049
if (
_displayRect
.Width != width ||
_displayRect
.Height != height)
1051
_displayRect
.Width = width;
1052
_displayRect
.Height = height;
1068
int x =
_displayRect
.X;
1069
int y =
_displayRect
.Y;
1145
Rectangle displayRect =
_displayRect
;
1268
int pos = -
_displayRect
.Y;
1271
int maxPos = -(client.Height -
_displayRect
.Height);
1340
SetDisplayRectLocation(
_displayRect
.X, -pos);
1362
int pos = -
_displayRect
.X;
1364
int maxPos = -(client.Width -
_displayRect
.Width);
1432
SetDisplayRectLocation(-pos,
_displayRect
.Y);