3 writes to _displayRect
System.Windows.Forms (3)
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
549
_displayRect
= ClientRectangle;
554
_displayRect
= new Rectangle(_displayRect.X, _displayRect.Y, HorizontalScroll.Maximum, _displayRect.Height);
559
_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;
547
if (
_displayRect
.IsEmpty)
554
_displayRect = new Rectangle(
_displayRect
.X,
_displayRect
.Y, HorizontalScroll.Maximum,
_displayRect
.Height);
559
_displayRect = new Rectangle(
_displayRect
.X,
_displayRect
.Y,
_displayRect
.Width, VerticalScroll.Maximum);
562
return
_displayRect
;
611
int pos = -
_displayRect
.Y;
612
int maxPos = -(client.Height -
_displayRect
.Height);
617
SetDisplayRectLocation(
_displayRect
.X, -pos);
627
int pos = -
_displayRect
.X;
628
int maxPos = -(client.Width -
_displayRect
.Width);
633
SetDisplayRectLocation(-pos,
_displayRect
.Y);
666
PaintTransparentBackground(e,
_displayRect
);
674
_displayRect
,
675
_displayRect
,
676
_displayRect
.Location);
748
Rectangle displayRectangle =
_displayRect
;
782
_displayRect
.X = x;
783
_displayRect
.Y = y;
849
int xCalc =
_displayRect
.X;
850
int yCalc =
_displayRect
.Y;
867
xCalc =
_displayRect
.X + xMargin - bounds.X;
871
xCalc = client.Width - (bounds.X + bounds.Width + xMargin -
_displayRect
.X);
873
if (bounds.X + xCalc -
_displayRect
.X < xMargin)
875
xCalc =
_displayRect
.X + xMargin - bounds.X;
881
yCalc =
_displayRect
.Y + yMargin - bounds.Y;
885
yCalc = client.Height - (bounds.Y + bounds.Height + yMargin -
_displayRect
.Y);
886
if (bounds.Y + yCalc -
_displayRect
.Y < yMargin)
888
yCalc =
_displayRect
.Y + yMargin - bounds.Y;
993
int x =
_displayRect
.X;
994
int y =
_displayRect
.Y;
1043
if (
_displayRect
.Width != width ||
_displayRect
.Height != height)
1045
_displayRect
.Width = width;
1046
_displayRect
.Height = height;
1062
int x =
_displayRect
.X;
1063
int y =
_displayRect
.Y;
1139
Rectangle displayRect =
_displayRect
;
1262
int pos = -
_displayRect
.Y;
1265
int maxPos = -(client.Height -
_displayRect
.Height);
1334
SetDisplayRectLocation(
_displayRect
.X, -pos);
1356
int pos = -
_displayRect
.X;
1358
int maxPos = -(client.Width -
_displayRect
.Width);
1426
SetDisplayRectLocation(-pos,
_displayRect
.Y);