24 writes to SizeType
System.Windows.Forms (10)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (6)
483
colStyle.
SizeType
= (spring) ? SizeType.Percent : SizeType.AutoSize;
494
TableLayoutSettings.RowStyles[0].
SizeType
= SizeType.Absolute;
501
TableLayoutSettings.ColumnStyles[i].
SizeType
= SizeType.AutoSize;
530
rowStyle.
SizeType
= (spring) ? SizeType.Percent : SizeType.AutoSize;
542
TableLayoutSettings.ColumnStyles[0].
SizeType
= SizeType.Absolute;
550
TableLayoutSettings.RowStyles[i].
SizeType
= SizeType.AutoSize;
System\Windows\Forms\Panels\TableLayoutPanel\ColumnStyle.cs (2)
14
SizeType
= sizeType;
19
SizeType
= sizeType;
System\Windows\Forms\Panels\TableLayoutPanel\RowStyle.cs (2)
14
SizeType
= sizeType;
19
SizeType
= sizeType;
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (7)
657
Table.ColumnStyles[0].
SizeType
= SizeType.Percent;
659
Table.ColumnStyles[1].
SizeType
= SizeType.Percent;
663
Table.RowStyles[0].
SizeType
= SizeType.Percent;
665
Table.RowStyles[1].
SizeType
= SizeType.Percent;
1986
styles[index].
SizeType
= SizeType.Absolute;
1998
styles[index].
SizeType
= SizeType.Percent;
2010
styles[index].
SizeType
= SizeType.AutoSize;
System.Windows.Forms.Tests (7)
System\Windows\Forms\TableLayoutStyleTests.cs (7)
26
SizeType
= value
31
style.
SizeType
= value;
55
style.
SizeType
= value;
61
style.
SizeType
= value;
94
style.
SizeType
= value;
103
style.
SizeType
= value;
149
Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new SubTableLayoutStyle {
SizeType
= sizeType }, typeof(InstanceDescriptor)));
67 references to SizeType
System.Windows.Forms (22)
System\Windows\Forms\Layout\TableLayout.ContainerInfo.cs (1)
343
if (style.
SizeType
== SizeType.Percent)
System\Windows\Forms\Layout\TableLayout.cs (14)
159
if (containerInfo.MaxColumns == 1 && containerInfo.ColumnStyles.Count > 0 && containerInfo.ColumnStyles[0].
SizeType
== SizeType.Absolute)
659
if (style is not null && style.
SizeType
== SizeType.Absolute)
768
if (style.
SizeType
== SizeType.Percent)
787
if (style.
SizeType
== SizeType.Percent)
929
if (lastPercent < styles.Count && styles[lastPercent].
SizeType
== SizeType.Percent)
1003
(index < styles.Count) && styles[index].
SizeType
== SizeType.Absolute;
1031
switch (style.
SizeType
)
1096
SizeType sizeType = i < styles.Count ? styles[i].
SizeType
: SizeType.AutoSize;
1120
SizeType sizeType = i < styles.Count ? styles[i].
SizeType
: SizeType.AutoSize;
1154
SizeType sizeType = i < styles.Count ? styles[i].
SizeType
: SizeType.AutoSize;
1490
Debug.Assert(containerInfo.ColumnStyles[k].
SizeType
== SizeType.Absolute, $"column {k} is not absolutely sized");
1495
Debug.Assert(containerInfo.ColumnStyles[k].
SizeType
== SizeType.Absolute, $"column {k} is not absolutely sized");
1507
Debug.Assert(containerInfo.RowStyles[k].
SizeType
== SizeType.Absolute, $"column {k} is not absolutely sized");
1512
Debug.Assert(containerInfo.RowStyles[k].
SizeType
== SizeType.Absolute, $"column {k} is not absolutely sized");
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (2)
523
if (cs.
SizeType
== SizeType.Absolute)
544
if (rs.
SizeType
== SizeType.Absolute)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.StyleConverter.cs (2)
28
switch (style.
SizeType
)
38
new object[] { style.
SizeType
, style.Size });
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (2)
99
columnStyles.Append($"{colStyle.
SizeType
},{colStyle.Width},");
115
rowStyles.Append($"{rowStyle.
SizeType
},{rowStyle.Height},");
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyle.cs (1)
62
return
SizeType
!= SizeType.AutoSize;
System.Windows.Forms.Design (15)
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (8)
213
if (_styles[i].
SizeType
!= SizeType.AutoSize && widths[i] >= DesignerUtils.s_minimumSizeDrag)
226
if (_styles[i].
SizeType
!= SizeType.AutoSize && widths[i] >= DesignerUtils.s_minimumSizeDrag)
280
if (_styles[rightIndex].
SizeType
== SizeType.Absolute &&
281
_styles[leftIndex].
SizeType
== SizeType.Absolute)
307
else if (_styles[rightIndex].
SizeType
== SizeType.Percent &&
308
_styles[leftIndex].
SizeType
== SizeType.Percent)
312
if (_styles[i].
SizeType
== SizeType.Percent)
330
int absIndex = _styles[rightIndex].
SizeType
== SizeType.Absolute ? rightIndex : leftIndex;
System\Windows\Forms\Design\StyleEditorForm.cs (4)
589
sizeType = rowStyle.
SizeType
.ToString();
590
sizeValue = FormatValueString(rowStyle.
SizeType
, rowStyle.Height);
595
sizeType = colStyle.
SizeType
.ToString();
596
sizeValue = FormatValueString(colStyle.
SizeType
, colStyle.Width);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
1608
switch (isRow ? Table.RowStyles[_curRow].
SizeType
: Table.ColumnStyles[_curCol].
SizeType
)
1956
if (styles[index].
SizeType
== newType)
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\ByteViewerTests.cs (2)
47
Assert.Equal(SizeType.Percent, columnStyle.
SizeType
);
111
Assert.Equal(SizeType.Percent, rowStyle.
SizeType
);
System.Windows.Forms.Tests (28)
SerializableTypesTests.cs (4)
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
);
320
Assert.Equal(SizeType.Absolute, result.RowStyles[0].
SizeType
);
System\Windows\Forms\ColumnStyleTests.cs (3)
12
Assert.Equal(SizeType.AutoSize, style.
SizeType
);
22
Assert.Equal(sizeType, style.
SizeType
);
35
Assert.Equal(sizeType, style.
SizeType
);
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (4)
1795
Assert.Equal(columnStyle.
SizeType
, ((ColumnStyle)Assert.Single(result.ColumnStyles)).
SizeType
);
1797
Assert.Equal(rowStyle.
SizeType
, ((RowStyle)Assert.Single(result.RowStyles)).
SizeType
);
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (7)
48
Assert.Equal(SizeType.AutoSize, settings.ColumnStyles[0].
SizeType
);
50
Assert.Equal(SizeType.Absolute, settings.ColumnStyles[1].
SizeType
);
52
Assert.Equal(SizeType.AutoSize, settings.ColumnStyles[2].
SizeType
);
54
Assert.Equal(SizeType.Percent, settings.ColumnStyles[3].
SizeType
);
56
Assert.Equal(SizeType.Percent, settings.ColumnStyles[4].
SizeType
);
60
Assert.Equal(SizeType.AutoSize, settings.RowStyles[0].
SizeType
);
62
Assert.Equal(SizeType.Absolute, settings.RowStyles[1].
SizeType
);
System\Windows\Forms\RowStyleTests.cs (3)
12
Assert.Equal(SizeType.AutoSize, style.
SizeType
);
22
Assert.Equal(sizeType, style.
SizeType
);
35
Assert.Equal(sizeType, style.
SizeType
);
System\Windows\Forms\TableLayoutStyleTests.cs (7)
16
Assert.Equal(SizeType.AutoSize, style.
SizeType
);
28
Assert.Equal(value, style.
SizeType
);
32
Assert.Equal(value, style.
SizeType
);
56
Assert.Equal(value, style.
SizeType
);
62
Assert.Equal(value, style.
SizeType
);
95
Assert.Equal(value, style.
SizeType
);
104
Assert.Equal(value, style.
SizeType
);