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