4 writes to All
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (1)
271value.All = 0;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Padding.cs (1)
171private void ResetAll() => All = 0;
System.Windows.Forms.Tests (2)
System\Windows\Forms\PaddingTests.cs (2)
83All = value 138All = value
59 references to All
System.Windows.Forms (6)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
268if (value.All != -1) 270Debug.Assert(value.All < -1);
System\Windows\Forms\Layout\LayoutUtils.cs (2)
143if (padding.All < 0) 414if (padding.All != -1)
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdgesConverter.cs (2)
64if (_owner.Padding.All == -1 74return _owner.Padding.All;
System.Windows.Forms.Primitives (6)
System\Windows\Forms\Padding.cs (2)
197Debug.Assert(All == Left && Left == Top && Top == Right && Right == Bottom, "_all is true, but All/Left/Top/Right/Bottom inconsistent."); 201Debug.Assert(All == -1, "_all is false, but All != -1.");
System\Windows\Forms\PaddingConverter.cs (4)
59new object[] { padding.All }) 86int all = (int)propertyValues[nameof(Padding.All)]!; 87if (originalPadding.All != all) 115return properties.Sort([nameof(Padding.All), nameof(Padding.Left), nameof(Padding.Top), nameof(Padding.Right), nameof(Padding.Bottom)]);
System.Windows.Forms.Tests (46)
System\Windows\Forms\DockPaddingEdgesTests.cs (5)
49Assert.Equal(expectedPaddingAll, owner.Padding.All); 92Assert.Equal(-1, owner.Padding.All); 135Assert.Equal(-1, owner.Padding.All); 178Assert.Equal(-1, owner.Padding.All); 221Assert.Equal(-1, owner.Padding.All);
System\Windows\Forms\PaddingConverterTests.cs (19)
148{ nameof(Padding.All), all }, 165{ nameof(Padding.All), expected.All }, 187{ nameof(Padding.All), new object() }, 198{ nameof(Padding.All), null }, 220{ nameof(Padding.All), 1 }, 231{ nameof(Padding.All), 1 }, 242{ nameof(Padding.All), 1 }, 253{ nameof(Padding.All), 1 }, 264{ nameof(Padding.All), 1 }, 275{ nameof(Padding.All), 1 }, 286{ nameof(Padding.All), 1 }, 297{ nameof(Padding.All), 1 }, 308{ nameof(Padding.All), 1 }, 319{ nameof(Padding.All), 1 }, 330{ nameof(Padding.All), 1 }, 341{ nameof(Padding.All), 1 }, 379{ nameof(Padding.All), 1 }, 404Assert.Equal(nameof(Padding.All), properties[0].Name);
System\Windows\Forms\PaddingTests.cs (22)
16Assert.Equal(-1, padding.All); 31Assert.Equal(all, padding.All); 53Assert.Equal(expectedAll, padding.All); 67Assert.Equal(0, padding.All); 85Assert.Equal(value, padding.All); 98PropertyDescriptor property = properties[nameof(Padding.All)]; 103Assert.Equal(0, ((Padding)boxedPadding).All); 118PropertyDescriptor property = properties[nameof(Padding.All)]; 123Assert.Equal(0, ((Padding)boxedPadding).All); 140Assert.Equal(value, padding.All); 155Assert.Equal(-1, padding.All); 173Assert.Equal(-1, ((Padding)boxedPadding).All); 190Assert.Equal(-1, padding.All); 205Assert.Equal(-1, padding.All); 223Assert.Equal(-1, ((Padding)boxedPadding).All); 240Assert.Equal(-1, padding.All); 255Assert.Equal(-1, padding.All); 273Assert.Equal(-1, ((Padding)boxedPadding).All); 290Assert.Equal(-1, padding.All); 305Assert.Equal(-1, padding.All); 323Assert.Equal(-1, ((Padding)boxedPadding).All); 340Assert.Equal(-1, padding.All);
WinFormsControlsTest (1)
MainForm.cs (1)
291int padding = overarchingFlowLayoutPanel.Controls[0].Margin.All;