3 writes to _displayRect
System.Windows.Forms (3)
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
547
_displayRect
= ClientRectangle;
552
_displayRect
= new Rectangle(_displayRect.X, _displayRect.Y, HorizontalScroll.Maximum, _displayRect.Height);
557
_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)
193
if (!
_displayRect
.IsEmpty)
195
rect.X =
_displayRect
.X;
196
rect.Y =
_displayRect
.Y;
199
rect.Width =
_displayRect
.Width;
204
rect.Height =
_displayRect
.Height;
545
if (
_displayRect
.IsEmpty)
552
_displayRect = new Rectangle(
_displayRect
.X,
_displayRect
.Y, HorizontalScroll.Maximum,
_displayRect
.Height);
557
_displayRect = new Rectangle(
_displayRect
.X,
_displayRect
.Y,
_displayRect
.Width, VerticalScroll.Maximum);
560
return
_displayRect
;
609
int pos = -
_displayRect
.Y;
610
int maxPos = -(client.Height -
_displayRect
.Height);
615
SetDisplayRectLocation(
_displayRect
.X, -pos);
625
int pos = -
_displayRect
.X;
626
int maxPos = -(client.Width -
_displayRect
.Width);
631
SetDisplayRectLocation(-pos,
_displayRect
.Y);
664
PaintTransparentBackground(e,
_displayRect
);
672
_displayRect
,
673
_displayRect
,
674
_displayRect
.Location);
746
Rectangle displayRectangle =
_displayRect
;
780
_displayRect
.X = x;
781
_displayRect
.Y = y;
847
int xCalc =
_displayRect
.X;
848
int yCalc =
_displayRect
.Y;
865
xCalc =
_displayRect
.X + xMargin - bounds.X;
869
xCalc = client.Width - (bounds.X + bounds.Width + xMargin -
_displayRect
.X);
871
if (bounds.X + xCalc -
_displayRect
.X < xMargin)
873
xCalc =
_displayRect
.X + xMargin - bounds.X;
879
yCalc =
_displayRect
.Y + yMargin - bounds.Y;
883
yCalc = client.Height - (bounds.Y + bounds.Height + yMargin -
_displayRect
.Y);
884
if (bounds.Y + yCalc -
_displayRect
.Y < yMargin)
886
yCalc =
_displayRect
.Y + yMargin - bounds.Y;
991
int x =
_displayRect
.X;
992
int y =
_displayRect
.Y;
1041
if (
_displayRect
.Width != width ||
_displayRect
.Height != height)
1043
_displayRect
.Width = width;
1044
_displayRect
.Height = height;
1060
int x =
_displayRect
.X;
1061
int y =
_displayRect
.Y;
1137
Rectangle displayRect =
_displayRect
;
1260
int pos = -
_displayRect
.Y;
1263
int maxPos = -(client.Height -
_displayRect
.Height);
1332
SetDisplayRectLocation(
_displayRect
.X, -pos);
1354
int pos = -
_displayRect
.X;
1356
int maxPos = -(client.Width -
_displayRect
.Width);
1424
SetDisplayRectLocation(-pos,
_displayRect
.Y);