6 writes to Left
System.Drawing.Common (1)
System\Drawing\Printing\Margins.cs (1)
124
Left
= (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)
165
Left
= value
170
margins.
Left
= value;
178
AssertExtensions.Throws<ArgumentOutOfRangeException, ArgumentException>("value", null, () => margins.
Left
= -1);
System.Windows.Forms (1)
System\Windows\Forms\Printing\PageSetupDialog.cs (1)
251
Left
= data.rtMargin.left,
23 references to Left
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)
179
&& margins.
Left
==
Left
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)
80
args[nArg++] = intConverter.ConvertToString(context, culture, margins.
Left
);
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)
204
pageSettings.Margins.
Left
,
206
pageBounds.Width - (pageSettings.Margins.
Left
+ pageSettings.Margins.Right),
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)
64
Assert.Equal(1, margins.
Left
);
93
Assert.Equal(1, margins.
Left
);
System\Drawing\Printing\MarginsTests.cs (5)
36
Assert.Equal(100, margins.
Left
);
49
Assert.Equal(left, margins.
Left
);
146
Assert.Equal(1, clonedMargins.
Left
);
167
Assert.Equal(value, margins.
Left
);
171
Assert.Equal(value, margins.
Left
);
System.Windows.Forms (3)
System\Windows\Forms\Printing\PageSetupDialog.cs (3)
232
&& (_minMargins.
Left
!= 0
305
dialogSettings.rtMinMargin.left = margins.
Left
;
314
dialogSettings.rtMargin.left = margins.
Left
;