28 references to TableLayoutSettings
System.Windows.Forms (28)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (28)
449
TableLayoutSettings settings =
TableLayoutSettings
;
463
TableLayoutSettings
.GrowStyle = TableLayoutPanelGrowStyle.AddColumns;
465
int originalColumnCount =
TableLayoutSettings
.ColumnStyles.Count;
473
TableLayoutSettings
.ColumnStyles.Add(new ColumnStyle());
481
ColumnStyle colStyle =
TableLayoutSettings
.ColumnStyles[i];
486
if (
TableLayoutSettings
.RowStyles.Count is > 1 or 0)
488
TableLayoutSettings
.RowStyles.Clear();
489
TableLayoutSettings
.RowStyles.Add(new RowStyle());
492
TableLayoutSettings
.RowCount = 1;
494
TableLayoutSettings
.RowStyles[0].SizeType = SizeType.Absolute;
495
TableLayoutSettings
.RowStyles[0].Height = Math.Max(0, DisplayRectangle.Height);
496
TableLayoutSettings
.ColumnCount = DisplayedItems.Count + 1; // add an extra cell so it fills the remaining space
499
for (int i = DisplayedItems.Count; i <
TableLayoutSettings
.ColumnStyles.Count; i++)
501
TableLayoutSettings
.ColumnStyles[i].SizeType = SizeType.AutoSize;
510
TableLayoutSettings
.GrowStyle = TableLayoutPanelGrowStyle.AddRows;
512
int originalRowCount =
TableLayoutSettings
.RowStyles.Count;
520
TableLayoutSettings
.RowStyles.Add(new RowStyle());
528
RowStyle rowStyle =
TableLayoutSettings
.RowStyles[i];
533
TableLayoutSettings
.ColumnCount = 1;
535
if (
TableLayoutSettings
.ColumnStyles.Count is > 1 or 0)
537
TableLayoutSettings
.ColumnStyles.Clear();
538
TableLayoutSettings
.ColumnStyles.Add(new ColumnStyle());
541
TableLayoutSettings
.ColumnCount = 1;
542
TableLayoutSettings
.ColumnStyles[0].SizeType = SizeType.Absolute;
543
TableLayoutSettings
.ColumnStyles[0].Width = Math.Max(0, DisplayRectangle.Width);
545
TableLayoutSettings
.RowCount = DisplayedItems.Count + 1; // add an extra cell so it fills the remaining space
548
for (int i = DisplayedItems.Count; i <
TableLayoutSettings
.RowStyles.Count; i++)
550
TableLayoutSettings
.RowStyles[i].SizeType = SizeType.AutoSize;