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