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