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