3 types derived from TableLayoutStyle
System.Windows.Forms (2)
System\Windows\Forms\Panels\TableLayoutPanel\ColumnStyle.cs (1)
6public class ColumnStyle : TableLayoutStyle
System\Windows\Forms\Panels\TableLayoutPanel\RowStyle.cs (1)
6public class RowStyle : TableLayoutStyle
System.Windows.Forms.Tests (1)
System\Windows\Forms\TableLayoutStyleTests.cs (1)
175private class SubTableLayoutStyle : TableLayoutStyle
36 references to TableLayoutStyle
System.Windows.Forms (23)
System\Windows\Forms\Layout\TableLayout.cs (6)
657TableLayoutStyle? style = i < styles.Count ? styles[i] : null; 767TableLayoutStyle style = styles[i]; 786TableLayoutStyle style = styles[i]; 1030TableLayoutStyle style = styles[i]; 1099TableLayoutStyle style = styles[i]; 1131TableLayoutStyle style = styles[i];
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.StyleConverter.cs (1)
26if (destinationType == typeof(InstanceDescriptor) && value is TableLayoutStyle style)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (16)
15private readonly List<TableLayoutStyle> _innerList = []; 26int IList.Add(object? style) => Add((TableLayoutStyle)style!); 28public int Add(TableLayoutStyle style) 31if (style is not TableLayoutStyle tableLayoutStyle) 33throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(style), typeof(TableLayoutStyle)), nameof(style)); 46if (style is not TableLayoutStyle tableLayoutStyle) 48throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(style), typeof(TableLayoutStyle)), nameof(style)); 63if (value is not TableLayoutStyle tableLayoutStyle) 65throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(value), typeof(TableLayoutStyle)), nameof(value)); 75public TableLayoutStyle this[int index] 77get => (TableLayoutStyle)((IList)this)[index]!; 88if (style is not TableLayoutStyle tableLayoutStyle) 90throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(style), typeof(TableLayoutStyle)), nameof(style)); 104foreach (TableLayoutStyle style in _innerList) 115TableLayoutStyle style = _innerList[index]; 139private static void EnsureNotOwned(TableLayoutStyle style)
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (3)
26private List<TableLayoutStyle> _styles; 169_styles = ((TableLayoutStyleCollection)_changedProp.GetValue(_table)).Cast<TableLayoutStyle>().ToList(); 413public TableLayoutStyle style;
System\Windows\Forms\Design\Behavior\TableLayoutPanelResizeGlyph.cs (3)
14private readonly TableLayoutStyle _style; 20internal TableLayoutPanelResizeGlyph(Rectangle controlBounds, TableLayoutStyle style, Cursor hitTestCursor, Behavior behavior) : base(behavior) 38public TableLayoutStyle Style => _style;
System.Windows.Forms.Tests (7)
System\Windows\Forms\TableLayoutStyleTests.cs (7)
115[InlineData(typeof(TableLayoutStyle), false)] 120TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 138TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 148TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 155TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 162TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 171TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle));