16 writes to Width
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
482
colStyle.
Width
= 100; // this width is ignored in AutoSize.
543
TableLayoutSettings.ColumnStyles[0].
Width
= Math.Max(0, DisplayRectangle.Width);
System\Windows\Forms\Panels\TableLayoutPanel\ColumnStyle.cs (1)
20
Width
= width;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (2)
529
cs.
Width
= (float)Math.Round(lastColumnHeight * factor.Width);
533
cs.
Width
= (float)Math.Round(cs.Width * factor.Width);
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (4)
658
Table.ColumnStyles[0].
Width
= DesignerUtils.s_minimumStylePercent;
660
Table.ColumnStyles[1].
Width
= DesignerUtils.s_minimumStylePercent;
1993
Table.ColumnStyles[index].
Width
= ch[index];
2005
Table.ColumnStyles[index].
Width
= DesignerUtils.s_minimumStylePercent;
System.Windows.Forms.Tests (7)
System\Windows\Forms\ColumnStyleTests.cs (7)
53
Width
= value
58
style.
Width
= value;
80
style.
Width
= value;
86
style.
Width
= value;
117
style.
Width
= value;
126
style.
Width
= value;
139
Assert.Throws<ArgumentOutOfRangeException>("value", () => style.
Width
= -1);
20 references to Width
System.Windows.Forms (2)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
533
cs.Width = (float)Math.Round(cs.
Width
* factor.Width);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (1)
99
columnStyles.Append($"{colStyle.SizeType},{colStyle.
Width
},");
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\StyleEditorForm.cs (1)
596
sizeValue = FormatValueString(colStyle.SizeType, colStyle.
Width
);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
48
Assert.Equal(100F, columnStyle.
Width
);
System.Windows.Forms.Tests (16)
System\Windows\Forms\ColumnStyleTests.cs (9)
13
Assert.Equal(0, style.
Width
);
23
Assert.Equal(0, style.
Width
);
36
Assert.Equal(width, style.
Width
);
55
Assert.Equal(value, style.
Width
);
59
Assert.Equal(value, style.
Width
);
81
Assert.Equal(value, style.
Width
);
87
Assert.Equal(value, style.
Width
);
118
Assert.Equal(value, style.
Width
);
127
Assert.Equal(value, style.
Width
);
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (2)
1796
Assert.Equal(columnStyle.
Width
, ((ColumnStyle)Assert.Single(result.ColumnStyles)).
Width
);
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (5)
49
Assert.Equal(1, settings.ColumnStyles[0].
Width
);
51
Assert.Equal(2.2f, settings.ColumnStyles[1].
Width
);
53
Assert.Equal(1.12f, settings.ColumnStyles[2].
Width
);
55
Assert.Equal(1, settings.ColumnStyles[3].
Width
);
57
Assert.Equal(0, settings.ColumnStyles[4].
Width
);