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