70 references to ColumnStyles
System.Windows.Forms (14)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (11)
452
settings.
ColumnStyles
.Clear();
465
int originalColumnCount = TableLayoutSettings.
ColumnStyles
.Count;
473
TableLayoutSettings.
ColumnStyles
.Add(new ColumnStyle());
481
ColumnStyle colStyle = TableLayoutSettings.
ColumnStyles
[i];
499
for (int i = DisplayedItems.Count; i < TableLayoutSettings.
ColumnStyles
.Count; i++)
501
TableLayoutSettings.
ColumnStyles
[i].SizeType = SizeType.AutoSize;
535
if (TableLayoutSettings.
ColumnStyles
.Count is > 1 or 0)
537
TableLayoutSettings.
ColumnStyles
.Clear();
538
TableLayoutSettings.
ColumnStyles
.Add(new ColumnStyle());
542
TableLayoutSettings.
ColumnStyles
[0].SizeType = SizeType.Absolute;
543
TableLayoutSettings.
ColumnStyles
[0].Width = Math.Max(0, DisplayRectangle.Width);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
164
public TableLayoutColumnStyleCollection ColumnStyles => _tableLayoutSettings.
ColumnStyles
;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (2)
97
foreach (ColumnStyle colStyle in tableLayoutSettings.
ColumnStyles
)
236
settings.
ColumnStyles
.Add(new ColumnStyle(type, width));
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
49
Assert.Same(control.LayoutSettings.
ColumnStyles
, control.ColumnStyles);
System.Windows.Forms.Tests (55)
SerializableTypesTests.cs (4)
315
Assert.Equal(3, result.
ColumnStyles
.Count);
317
Assert.Equal(SizeType.Percent, result.
ColumnStyles
[0].SizeType);
318
Assert.Equal(SizeType.Percent, result.
ColumnStyles
[1].SizeType);
319
Assert.Equal(SizeType.Percent, result.
ColumnStyles
[2].SizeType);
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (12)
20
Assert.Empty(settings.
ColumnStyles
);
21
Assert.Same(settings.
ColumnStyles
, settings.
ColumnStyles
);
37
Assert.Empty(settings.
ColumnStyles
);
38
Assert.Same(settings.
ColumnStyles
, settings.
ColumnStyles
);
1673
settings.
ColumnStyles
.Add(columnStyle);
1709
settings.
ColumnStyles
.Add(columnStyle);
1782
settings.
ColumnStyles
.Add(columnStyle);
1795
Assert.Equal(columnStyle.SizeType, ((ColumnStyle)Assert.Single(result.
ColumnStyles
)).SizeType);
1796
Assert.Equal(columnStyle.Width, ((ColumnStyle)Assert.Single(result.
ColumnStyles
)).Width);
1852
Assert.Empty(result.
ColumnStyles
);
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (15)
47
Assert.Equal(5, settings.
ColumnStyles
.Count);
48
Assert.Equal(SizeType.AutoSize, settings.
ColumnStyles
[0].SizeType);
49
Assert.Equal(1, settings.
ColumnStyles
[0].Width);
50
Assert.Equal(SizeType.Absolute, settings.
ColumnStyles
[1].SizeType);
51
Assert.Equal(2.2f, settings.
ColumnStyles
[1].Width);
52
Assert.Equal(SizeType.AutoSize, settings.
ColumnStyles
[2].SizeType);
53
Assert.Equal(1.12f, settings.
ColumnStyles
[2].Width);
54
Assert.Equal(SizeType.Percent, settings.
ColumnStyles
[3].SizeType);
55
Assert.Equal(1, settings.
ColumnStyles
[3].Width);
56
Assert.Equal(SizeType.Percent, settings.
ColumnStyles
[4].SizeType);
57
Assert.Equal(0, settings.
ColumnStyles
[4].Width);
105
Assert.Empty(settings.
ColumnStyles
);
176
settings.
ColumnStyles
.Add(new ColumnStyle(SizeType.AutoSize, 1));
177
settings.
ColumnStyles
.Add(new ColumnStyle(SizeType.Absolute, 2));
260
Assert.Throws<InvalidCastException>(() => settings.
ColumnStyles
.Add(new RowStyle()));
System\Windows\Forms\TableLayoutColumnStyleCollectionTests.cs (8)
13
TableLayoutColumnStyleCollection collection = settings.
ColumnStyles
;
25
TableLayoutColumnStyleCollection collection = settings.
ColumnStyles
;
37
TableLayoutColumnStyleCollection collection = settings.
ColumnStyles
;
49
TableLayoutColumnStyleCollection collection = settings.
ColumnStyles
;
63
TableLayoutColumnStyleCollection collection = settings.
ColumnStyles
;
73
TableLayoutColumnStyleCollection collection = settings.
ColumnStyles
;
88
TableLayoutColumnStyleCollection collection = settings.
ColumnStyles
;
101
TableLayoutColumnStyleCollection collection = settings.
ColumnStyles
;
System\Windows\Forms\TableLayoutPanelTests.cs (14)
49
Assert.Same(control.LayoutSettings.
ColumnStyles
, control.ColumnStyles);
427
Assert.Empty(control.LayoutSettings.
ColumnStyles
);
435
Assert.Empty(control.LayoutSettings.
ColumnStyles
);
448
settings.
ColumnStyles
.Add(columnStyle);
463
Assert.Equal(columnStyle, Assert.Single(control.LayoutSettings.
ColumnStyles
));
471
Assert.Empty(control.LayoutSettings.
ColumnStyles
);
493
settings.
ColumnStyles
.Add(columnStyle);
518
Assert.Equal(columnStyle, Assert.Single(control.LayoutSettings.
ColumnStyles
));
530
Assert.Empty(control.LayoutSettings.
ColumnStyles
);
546
settings.
ColumnStyles
.Add(new ColumnStyle(SizeType.Percent, 1));
561
Assert.Empty(settings.
ColumnStyles
);
562
Assert.Empty(settings.
ColumnStyles
);
569
Assert.Empty(settings.
ColumnStyles
);
570
Assert.Empty(settings.
ColumnStyles
);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
3017
Assert.Empty(settings.
ColumnStyles
);
System\Windows\Forms\ToolStripTests.cs (1)
4335
Assert.Empty(settings.
ColumnStyles
);