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)
114if (_styles is not null && CanResizeStyle(widths)) 124int moveIndex = _styles.IndexOf(_tableGlyph.Style); 126_rightStyle.style = _styles[_rightStyle.index]; 130_leftStyle.style = _styles[_leftStyle.index]; 167if ((_styles is null || isColumn != _currentColumnStyles) && _table is not null) 190int moveIndex = _styles.IndexOf(_tableGlyph.Style); 191if (moveIndex <= -1 || moveIndex == _styles.Count) 207if (_styles is not null) 211for (int i = startIndex + 1; ((i < _styles.Count) && (i < widths.Length)); i++) 213if (_styles[i].SizeType != SizeType.AutoSize && widths[i] >= DesignerUtils.s_minimumSizeDrag) 226if (_styles[i].SizeType != SizeType.AutoSize && widths[i] >= DesignerUtils.s_minimumSizeDrag) 245if (_styles is not null) 280if (_styles[rightIndex].SizeType == SizeType.Absolute && 281_styles[leftIndex].SizeType == SizeType.Absolute) 307else if (_styles[rightIndex].SizeType == SizeType.Percent && 308_styles[leftIndex].SizeType == SizeType.Percent) 310for (int i = 0; i < _styles.Count; i++) 312if (_styles[i].SizeType == SizeType.Percent) 323PropertyDescriptor prop = TypeDescriptor.GetProperties(_styles[i])[isColumn ? "Width" : "Height"]; 324prop?.SetValue(_styles[i], newSize); 330int absIndex = _styles[rightIndex].SizeType == SizeType.Absolute ? rightIndex : leftIndex; 331PropertyDescriptor prop = TypeDescriptor.GetProperties(_styles[absIndex])[isColumn ? "Width" : "Height"]; 340float curAbsStyleSize = (float)prop.GetValue(_styles[absIndex]); 348prop.SetValue(_styles[absIndex], newAbsSize);