1 write to _parentGridSize
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
273
_parentGridSize
= (Size)gridProp.GetValue(control.Parent);
17 references to _parentGridSize
System.Windows.Forms.Design (17)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (17)
96
int xDelta = controlBounds.Right %
_parentGridSize
.Width;
97
if (xDelta >
_parentGridSize
.Width / 2)
99
rect.Width +=
_parentGridSize
.Width - xDelta;
108
int xDelta = controlBounds.Left %
_parentGridSize
.Width;
109
if (xDelta >
_parentGridSize
.Width / 2)
111
rect.X +=
_parentGridSize
.Width - xDelta;
112
rect.Width -=
_parentGridSize
.Width - xDelta;
123
int yDelta = controlBounds.Bottom %
_parentGridSize
.Height;
124
if (yDelta >
_parentGridSize
.Height / 2)
126
rect.Height +=
_parentGridSize
.Height - yDelta;
135
int yDelta = controlBounds.Top %
_parentGridSize
.Height;
136
if (yDelta >
_parentGridSize
.Height / 2)
138
rect.Y +=
_parentGridSize
.Height - yDelta;
139
rect.Height -=
_parentGridSize
.Height - yDelta;
149
rect.Width = Math.Max(rect.Width,
_parentGridSize
.Width);
150
rect.Height = Math.Max(rect.Height,
_parentGridSize
.Height);
743
if (!
_parentGridSize
.IsEmpty)