20 writes to AutoScrollMargin
System.Windows.Forms (8)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
238set => base.AutoScrollMargin = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
72set => base.AutoScrollMargin = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
71set => base.AutoScrollMargin = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
86set => base.AutoScrollMargin = value;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
94set => base.AutoScrollMargin = value;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
161set => base.AutoScrollMargin = value;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
502set => base.AutoScrollMargin = value;
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
935private void ResetAutoScrollMargin() => AutoScrollMargin = Size.Empty;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignerFrame.cs (1)
165_designerRegion.AutoScrollMargin = selectionSize;
System.Windows.Forms.Tests (11)
System\Windows\Forms\ScrollableControlTests.cs (11)
355control.AutoScrollMargin = value; 362control.AutoScrollMargin = value; 393control.AutoScrollMargin = value; 403control.AutoScrollMargin = value; 420control.AutoScrollMargin = new Size(1, 0); 424control.AutoScrollMargin = new Size(0, 1); 428control.AutoScrollMargin = new Size(1, 2); 444control.AutoScrollMargin = new Size(1, 0); 448control.AutoScrollMargin = new Size(0, 1); 452control.AutoScrollMargin = new Size(1, 2); 468Assert.Throws<ArgumentOutOfRangeException>("value", () => control.AutoScrollMargin = new Size(x, y));
41 references to AutoScrollMargin
System.Windows.Forms (10)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
237get => base.AutoScrollMargin;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
71get => base.AutoScrollMargin;
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
70get => base.AutoScrollMargin;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
85get => base.AutoScrollMargin;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
93get => base.AutoScrollMargin;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
160get => base.AutoScrollMargin;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
501get => base.AutoScrollMargin;
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
105throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(AutoScrollMargin), value)); 1129/// Indicates whether the <see cref="AutoScrollMargin"/> property should be persisted. 1131private bool ShouldSerializeAutoScrollMargin() => !AutoScrollMargin.Equals(Size.Empty);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\PropertyGridDesigner.cs (1)
14properties.Remove(nameof(PropertyGrid.AutoScrollMargin));
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
24Assert.Equal(Size.Empty, control.AutoScrollMargin);
System.Windows.Forms.Tests (29)
System\Windows\Forms\ContainerControlTests.cs (1)
29Assert.Equal(Size.Empty, control.AutoScrollMargin);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
37Assert.Equal(Size.Empty, control.AutoScrollMargin);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
25Assert.Equal(Size.Empty, control.AutoScrollMargin);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
24Assert.Equal(Size.Empty, control.AutoScrollMargin);
System\Windows\Forms\FormTests.cs (1)
35Assert.Equal(Size.Empty, control.AutoScrollMargin);
System\Windows\Forms\PanelTests.cs (1)
25Assert.Equal(Size.Empty, control.AutoScrollMargin);
System\Windows\Forms\PropertyGridTests.cs (1)
34Assert.Equal(Size.Empty, control.AutoScrollMargin);
System\Windows\Forms\ScrollableControlTests.cs (17)
26Assert.Equal(Size.Empty, control.AutoScrollMargin); 356Assert.Equal(value, control.AutoScrollMargin); 363Assert.Equal(value, control.AutoScrollMargin); 394Assert.Equal(value, control.AutoScrollMargin); 404Assert.Equal(value, control.AutoScrollMargin); 416PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMargin)]; 421Assert.Equal(new Size(1, 0), control.AutoScrollMargin); 425Assert.Equal(new Size(0, 1), control.AutoScrollMargin); 429Assert.Equal(new Size(1, 2), control.AutoScrollMargin); 433Assert.Equal(Size.Empty, control.AutoScrollMargin); 440PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ScrollableControl))[nameof(ScrollableControl.AutoScrollMargin)]; 445Assert.Equal(new Size(1, 0), control.AutoScrollMargin); 449Assert.Equal(new Size(0, 1), control.AutoScrollMargin); 453Assert.Equal(new Size(1, 2), control.AutoScrollMargin); 457Assert.Equal(Size.Empty, control.AutoScrollMargin); 2249Assert.Equal(expectedAutoScrollMargin, control.AutoScrollMargin); 2280Assert.Equal(expectedAutoScrollMargin, control.AutoScrollMargin);
System\Windows\Forms\SplitterPanelTests.cs (1)
31Assert.Equal(Size.Empty, control.AutoScrollMargin);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
26Assert.Equal(Size.Empty, control.AutoScrollMargin);
System\Windows\Forms\TabPageTests.cs (2)
29Assert.Equal(Size.Empty, control.AutoScrollMargin); 138Assert.Equal(Size.Empty, control.AutoScrollMargin);
System\Windows\Forms\UserControlTests.cs (1)
30Assert.Equal(Size.Empty, control.AutoScrollMargin);