1 write to _tableLayoutPanel
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\StyleEditorForm.cs (1)
96_tableLayoutPanel = Context.Instance as TableLayoutPanel;
58 references to _tableLayoutPanel
System.Windows.Forms.Design (58)
System\Windows\Forms\Design\StyleEditorForm.cs (58)
97_tableLayoutPanel.SuspendLayout(); 102var host = _tableLayoutPanel.Site.GetService<IDesignerHost>(); 105_tableLayoutPanelDesigner = host.GetDesigner(_tableLayoutPanel) as TableLayoutPanelDesigner; 109_rowStyleProp = TypeDescriptor.GetProperties(_tableLayoutPanel)["RowStyles"]; 110_colStyleProp = TypeDescriptor.GetProperties(_tableLayoutPanel)["ColumnStyles"]; 514_componentChangeService.OnComponentChanging(_tableLayoutPanel, _rowStyleProp); 519_componentChangeService.OnComponentChanging(_tableLayoutPanel, _colStyleProp); 525int[] columnWidths = _tableLayoutPanel.GetColumnWidths(); 526int[] rowHeights = _tableLayoutPanel.GetRowHeights(); 530if (_tableLayoutPanel.ColumnStyles.Count > columnWidths.Length) 532int diff = _tableLayoutPanel.ColumnStyles.Count - columnWidths.Length; 535_tableLayoutPanel.ColumnStyles.RemoveAt(_tableLayoutPanel.ColumnStyles.Count - 1); 539if (_tableLayoutPanel.RowStyles.Count > rowHeights.Length) 541int diff = _tableLayoutPanel.RowStyles.Count - rowHeights.Length; 544_tableLayoutPanel.RowStyles.RemoveAt(_tableLayoutPanel.RowStyles.Count - 1); 579int styleCount = _isRowCollection ? _tableLayoutPanel.RowStyles.Count : _tableLayoutPanel.ColumnStyles.Count; 588RowStyle rowStyle = _tableLayoutPanel.RowStyles[i]; 594ColumnStyle colStyle = _tableLayoutPanel.ColumnStyles[i]; 663UpdateGroupBox(_tableLayoutPanel.RowStyles[index].SizeType, _tableLayoutPanel.RowStyles[index].Height); 667UpdateGroupBox(_tableLayoutPanel.ColumnStyles[index].SizeType, _tableLayoutPanel.ColumnStyles[index].Width); 679type = _isRowCollection ? _tableLayoutPanel.RowStyles[index].SizeType : _tableLayoutPanel.ColumnStyles[index].SizeType; 680value = _isRowCollection ? _tableLayoutPanel.RowStyles[index].Height : _tableLayoutPanel.ColumnStyles[index].Width; 684if (type != (_isRowCollection ? _tableLayoutPanel.RowStyles[index].SizeType : _tableLayoutPanel.ColumnStyles[index].SizeType)) 690if (value != (_isRowCollection ? _tableLayoutPanel.RowStyles[index].Height : _tableLayoutPanel.ColumnStyles[index].Width)) 821? $"Row{_tableLayoutPanel.RowStyles.Count}" 822: $"Column{_tableLayoutPanel.RowStyles.Count}"; 910_tableLayoutPanel.RowStyles[index].SizeType = type; 911_tableLayoutPanel.RowStyles[index].Height = value; 915_tableLayoutPanel.ColumnStyles[index].SizeType = type; 916_tableLayoutPanel.ColumnStyles[index].Width = value; 963int count = normalizeRow ? _tableLayoutPanel.RowStyles.Count : _tableLayoutPanel.ColumnStyles.Count; 971if (_tableLayoutPanel.RowStyles[i].SizeType != SizeType.Percent) 976total += _tableLayoutPanel.RowStyles[i].Height; 980if (_tableLayoutPanel.ColumnStyles[i].SizeType != SizeType.Percent) 985total += _tableLayoutPanel.ColumnStyles[i].Width; 999if (_tableLayoutPanel.RowStyles[i].SizeType != SizeType.Percent) 1004_tableLayoutPanel.RowStyles[i].Height = (_tableLayoutPanel.RowStyles[i].Height * 100) / total; 1008if (_tableLayoutPanel.ColumnStyles[i].SizeType != SizeType.Percent) 1013_tableLayoutPanel.ColumnStyles[i].Width = (_tableLayoutPanel.ColumnStyles[i].Width * 100) / total; 1052PropertyDescriptor childProperty = TypeDescriptor.GetProperties(_tableLayoutPanel)[nameof(TableLayoutPanel.Controls)]; 1055_componentChangeService.OnComponentChanging(_tableLayoutPanel, childProperty); 1058var host = _tableLayoutPanel.Site.GetService<IDesignerHost>(); 1077_componentChangeService.OnComponentChanged(_tableLayoutPanel, childProperty, null, null); 1085_componentChangeService.OnComponentChanged(_tableLayoutPanel, _rowStyleProp, null, null); 1090_componentChangeService.OnComponentChanged(_tableLayoutPanel, _colStyleProp, null, null); 1116_tableLayoutPanel.ResumeLayout();