2 writes to _styles
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (2)
53
_styles
= null;
169
_styles
= [..((TableLayoutStyleCollection)_changedProp.GetValue(_table)).Cast<TableLayoutStyle>()];
24 references to _styles
System.Windows.Forms.Design (24)
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (24)
114
if (
_styles
is not null && CanResizeStyle(widths))
124
int moveIndex =
_styles
.IndexOf(_tableGlyph.Style);
126
_rightStyle.style =
_styles
[_rightStyle.index];
130
_leftStyle.style =
_styles
[_leftStyle.index];
167
if ((
_styles
is null || isColumn != _currentColumnStyles) && _table is not null)
190
int moveIndex =
_styles
.IndexOf(_tableGlyph.Style);
191
if (moveIndex <= -1 || moveIndex ==
_styles
.Count)
207
if (
_styles
is not null)
211
for (int i = startIndex + 1; ((i <
_styles
.Count) && (i < widths.Length)); i++)
213
if (
_styles
[i].SizeType != SizeType.AutoSize && widths[i] >= DesignerUtils.s_minimumSizeDrag)
226
if (
_styles
[i].SizeType != SizeType.AutoSize && widths[i] >= DesignerUtils.s_minimumSizeDrag)
245
if (
_styles
is not null)
280
if (
_styles
[rightIndex].SizeType == SizeType.Absolute &&
281
_styles
[leftIndex].SizeType == SizeType.Absolute)
307
else if (
_styles
[rightIndex].SizeType == SizeType.Percent &&
308
_styles
[leftIndex].SizeType == SizeType.Percent)
310
for (int i = 0; i <
_styles
.Count; i++)
312
if (
_styles
[i].SizeType == SizeType.Percent)
323
PropertyDescriptor prop = TypeDescriptor.GetProperties(
_styles
[i])[isColumn ? "Width" : "Height"];
324
prop?.SetValue(
_styles
[i], newSize);
330
int absIndex =
_styles
[rightIndex].SizeType == SizeType.Absolute ? rightIndex : leftIndex;
331
PropertyDescriptor prop = TypeDescriptor.GetProperties(
_styles
[absIndex])[isColumn ? "Width" : "Height"];
340
float curAbsStyleSize = (float)prop.GetValue(
_styles
[absIndex]);
348
prop.SetValue(
_styles
[absIndex], newAbsSize);