2 instantiations of DockPaddingEdges
System.Windows.Forms (2)
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
273public DockPaddingEdges DockPadding => _dockPadding ??= new DockPaddingEdges(this);
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdgesConverter.cs (1)
213object ICloneable.Clone() => new DockPaddingEdges(Left, Right, Top, Bottom);
54 references to DockPaddingEdges
System.Windows.Forms (7)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
251public new DockPaddingEdges DockPadding => base.DockPadding;
System\Windows\Forms\Panels\SplitterPanel.cs (1)
110public new DockPaddingEdges DockPadding
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
653public new DockPaddingEdges DockPadding => base.DockPadding;
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
39private DockPaddingEdges? _dockPadding; 273public DockPaddingEdges DockPadding => _dockPadding ??= new DockPaddingEdges(this);
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdges.cs (1)
20PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(DockPaddingEdges), attributes);
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdgesConverter.cs (1)
187return other is DockPaddingEdges dpeOther &&
System.Windows.Forms.Tests (47)
System\Windows\Forms\DockPaddingEdgesConverterTests.cs (5)
17Assert.Equal(nameof(ScrollableControl.DockPaddingEdges.All), properties[0].Name); 18Assert.Equal(nameof(ScrollableControl.DockPaddingEdges.Left), properties[1].Name); 19Assert.Equal(nameof(ScrollableControl.DockPaddingEdges.Top), properties[2].Name); 20Assert.Equal(nameof(ScrollableControl.DockPaddingEdges.Right), properties[3].Name); 21Assert.Equal(nameof(ScrollableControl.DockPaddingEdges.Bottom), properties[4].Name);
System\Windows\Forms\DockPaddingEdgesTests.cs (42)
26ScrollableControl.DockPaddingEdges padding = owner.DockPadding; 42ScrollableControl.DockPaddingEdges padding = owner.DockPadding; 65ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 85ScrollableControl.DockPaddingEdges padding = owner.DockPadding; 108ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 128ScrollableControl.DockPaddingEdges padding = owner.DockPadding; 151ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 171ScrollableControl.DockPaddingEdges padding = owner.DockPadding; 194ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 214ScrollableControl.DockPaddingEdges padding = owner.DockPadding; 237ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 248ScrollableControl.DockPaddingEdges CreatePadding(int left, int top, int right, int bottom) 257ScrollableControl.DockPaddingEdges CreateClonedPadding(int left, int top, int right, int bottom) 260return Assert.IsType<ScrollableControl.DockPaddingEdges>(cloneable.Clone()); 289public void DockPaddingEdges_Equals_Invoke_ReturnsExpected(ScrollableControl.DockPaddingEdges padding, object other, bool expected) 291if (other is ScrollableControl.DockPaddingEdges) 306ScrollableControl.DockPaddingEdges padding = owner.DockPadding; 319ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 332ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 349ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original2.Clone(); 364ScrollableControl.DockPaddingEdges padding = owner.DockPadding; 376ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 387ScrollableControl.DockPaddingEdges padding = owner.DockPadding; 389PropertyDescriptor property = properties[nameof(ScrollableControl.DockPaddingEdges.All)]; 408ScrollableControl.DockPaddingEdges padding = owner.DockPadding; 410PropertyDescriptor property = properties[nameof(ScrollableControl.DockPaddingEdges.Left)]; 429ScrollableControl.DockPaddingEdges padding = owner.DockPadding; 431PropertyDescriptor property = properties[nameof(ScrollableControl.DockPaddingEdges.Top)]; 450ScrollableControl.DockPaddingEdges padding = owner.DockPadding; 452PropertyDescriptor property = properties[nameof(ScrollableControl.DockPaddingEdges.Right)]; 471ScrollableControl.DockPaddingEdges padding = owner.DockPadding; 473PropertyDescriptor property = properties[nameof(ScrollableControl.DockPaddingEdges.Bottom)]; 488Assert.IsType<ScrollableControl.DockPaddingEdgesConverter>(TypeDescriptor.GetConverter(typeof(ScrollableControl.DockPaddingEdges)));