14 writes to PageUnit
System.Drawing.Common.Tests (13)
mono\System.Drawing\GraphicsTests.cs (7)
127
g.
PageUnit
= GraphicsUnit.Inch;
290
g.
PageUnit
= GraphicsUnit.Inch;
303
g.
PageUnit
= GraphicsUnit.Display;
960
g.
PageUnit
= GraphicsUnit.Inch;
993
g.
PageUnit
= GraphicsUnit.Inch;
1027
g.
PageUnit
= GraphicsUnit.Inch;
1108
g.
PageUnit
= GraphicsUnit.Inch;
System\Drawing\Drawing2D\GraphicsPathTests.cs (1)
1782
graphics.
PageUnit
= GraphicsUnit.Millimeter;
System\Drawing\GraphicsTests.cs (5)
706
graphics.
PageUnit
= pageUnit;
717
AssertExtensions.Throws<InvalidEnumArgumentException>("value", () => graphics.
PageUnit
= pageUnit);
725
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
PageUnit
= GraphicsUnit.World);
737
Assert.Throws<InvalidOperationException>(() => graphics.
PageUnit
= GraphicsUnit.Document);
753
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
PageUnit
= GraphicsUnit.Document);
System.Windows.Forms (1)
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
112
_graphics.
PageUnit
= GraphicsUnit.Pixel;
10 references to PageUnit
System.Drawing.Common.Tests (10)
mono\System.Drawing\GraphicsTests.cs (6)
111
Assert.Equal(GraphicsUnit.Display, g.
PageUnit
);
138
Assert.Equal(GraphicsUnit.Inch, g.
PageUnit
);
316
Assert.Equal(GraphicsUnit.Inch, g.
PageUnit
);
330
Assert.Equal(GraphicsUnit.Display, g.
PageUnit
);
912
AssertEquals(message + ".PageUnit", GraphicsUnit.Display, g.
PageUnit
);
927
AssertEquals(message + ".PageUnit", GraphicsUnit.Inch, g.
PageUnit
);
System\Drawing\GraphicsTests.cs (4)
707
Assert.Equal(pageUnit, graphics.
PageUnit
);
736
Assert.Throws<InvalidOperationException>(() => graphics.
PageUnit
);
752
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
PageUnit
);
2811
Assert.Equal(GraphicsUnit.Display, graphics.
PageUnit
);