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();
102
var 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);
525
int[] columnWidths =
_tableLayoutPanel
.GetColumnWidths();
526
int[] rowHeights =
_tableLayoutPanel
.GetRowHeights();
530
if (
_tableLayoutPanel
.ColumnStyles.Count > columnWidths.Length)
532
int diff =
_tableLayoutPanel
.ColumnStyles.Count - columnWidths.Length;
535
_tableLayoutPanel
.ColumnStyles.RemoveAt(
_tableLayoutPanel
.ColumnStyles.Count - 1);
539
if (
_tableLayoutPanel
.RowStyles.Count > rowHeights.Length)
541
int diff =
_tableLayoutPanel
.RowStyles.Count - rowHeights.Length;
544
_tableLayoutPanel
.RowStyles.RemoveAt(
_tableLayoutPanel
.RowStyles.Count - 1);
579
int styleCount = _isRowCollection ?
_tableLayoutPanel
.RowStyles.Count :
_tableLayoutPanel
.ColumnStyles.Count;
588
RowStyle rowStyle =
_tableLayoutPanel
.RowStyles[i];
594
ColumnStyle colStyle =
_tableLayoutPanel
.ColumnStyles[i];
663
UpdateGroupBox(
_tableLayoutPanel
.RowStyles[index].SizeType,
_tableLayoutPanel
.RowStyles[index].Height);
667
UpdateGroupBox(
_tableLayoutPanel
.ColumnStyles[index].SizeType,
_tableLayoutPanel
.ColumnStyles[index].Width);
679
type = _isRowCollection ?
_tableLayoutPanel
.RowStyles[index].SizeType :
_tableLayoutPanel
.ColumnStyles[index].SizeType;
680
value = _isRowCollection ?
_tableLayoutPanel
.RowStyles[index].Height :
_tableLayoutPanel
.ColumnStyles[index].Width;
684
if (type != (_isRowCollection ?
_tableLayoutPanel
.RowStyles[index].SizeType :
_tableLayoutPanel
.ColumnStyles[index].SizeType))
690
if (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;
963
int count = normalizeRow ?
_tableLayoutPanel
.RowStyles.Count :
_tableLayoutPanel
.ColumnStyles.Count;
971
if (
_tableLayoutPanel
.RowStyles[i].SizeType != SizeType.Percent)
976
total +=
_tableLayoutPanel
.RowStyles[i].Height;
980
if (
_tableLayoutPanel
.ColumnStyles[i].SizeType != SizeType.Percent)
985
total +=
_tableLayoutPanel
.ColumnStyles[i].Width;
999
if (
_tableLayoutPanel
.RowStyles[i].SizeType != SizeType.Percent)
1004
_tableLayoutPanel
.RowStyles[i].Height = (
_tableLayoutPanel
.RowStyles[i].Height * 100) / total;
1008
if (
_tableLayoutPanel
.ColumnStyles[i].SizeType != SizeType.Percent)
1013
_tableLayoutPanel
.ColumnStyles[i].Width = (
_tableLayoutPanel
.ColumnStyles[i].Width * 100) / total;
1052
PropertyDescriptor childProperty = TypeDescriptor.GetProperties(
_tableLayoutPanel
)[nameof(TableLayoutPanel.Controls)];
1055
_componentChangeService.OnComponentChanging(
_tableLayoutPanel
, childProperty);
1058
var 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();