6 writes to Top
System.Drawing.Common (1)
System\Drawing\Printing\Margins.cs (1)
150Top = (int)Math.Round(value);
System.Drawing.Common.Tests (4)
System\Drawing\Printing\MarginsConverterTests.cs (1)
123Margins margins = new() { Left = 1, Right = 2, Top = 3, Bottom = 4 };
System\Drawing\Printing\MarginsTests.cs (3)
209Top = value 214margins.Top = value; 222AssertExtensions.Throws<ArgumentOutOfRangeException, ArgumentException>("value", null, () => margins.Top = -1);
System.Windows.Forms (1)
System\Windows\Forms\Printing\PageSetupDialog.cs (1)
252Top = data.rtMargin.top,
23 references to Top
System.Drawing.Common (13)
System\Drawing\Printing\DefaultPrintController.cs (1)
102_graphics.TranslateTransform(document.DefaultPageSettings.Margins.Left, document.DefaultPageSettings.Margins.Top);
System\Drawing\Printing\Margins.cs (4)
181&& margins.Top == Top 187public override int GetHashCode() => HashCode.Combine(Left, Right, Top, Bottom); 215public override string ToString() => $"[Margins Left={Left} Right={Right} Top={Top} Bottom={Bottom}]";
System\Drawing\Printing\MarginsConverter.cs (2)
82args[nArg++] = intConverter.ConvertToString(context, culture, margins.Top); 94new object[] { margins.Left, margins.Right, margins.Top, margins.Bottom });
System\Drawing\Printing\PreviewPrintController.cs (1)
89_graphics.TranslateTransform(document.DefaultPageSettings.Margins.Left, document.DefaultPageSettings.Margins.Top);
System\Drawing\Printing\PrintController.cs (2)
205pageSettings.Margins.Top, 207pageBounds.Height - (pageSettings.Margins.Top + pageSettings.Margins.Bottom));
System\Drawing\Printing\PrinterSettings.cs (2)
499g.TranslateTransform(_defaultPageSettings.Margins.Left, _defaultPageSettings.Margins.Top); 521g.TranslateTransform(pageSettings.Margins.Left, pageSettings.Margins.Top);
System\Drawing\Printing\PrintPreviewGraphics.cs (1)
46graphics.TranslateTransform(_printDocument.DefaultPageSettings.Margins.Left, _printDocument.DefaultPageSettings.Margins.Top);
System.Drawing.Common.Tests (7)
System\Drawing\Printing\MarginsConverterTests.cs (2)
66Assert.Equal(3, margins.Top); 95Assert.Equal(3, margins.Top);
System\Drawing\Printing\MarginsTests.cs (5)
37Assert.Equal(100, margins.Top); 51Assert.Equal(top, margins.Top); 148Assert.Equal(3, clonedMargins.Top); 211Assert.Equal(value, margins.Top); 215Assert.Equal(value, margins.Top);
System.Windows.Forms (3)
System\Windows\Forms\Printing\PageSetupDialog.cs (3)
234|| _minMargins.Top != 0 306dialogSettings.rtMinMargin.top = margins.Top; 315dialogSettings.rtMargin.top = margins.Top;