20 references to Document
System.Drawing.Common.Tests (18)
mono\System.Drawing\GraphicsTests.cs (1)
1063BeginContainer_GraphicsUnit(GraphicsUnit.Document);
System\Drawing\FontConverterTests.cs (1)
235[InlineData("Document", GraphicsUnit.Document)]
System\Drawing\FontTests.cs (13)
132yield return new object[] { FontFamily.GenericMonospace, 1, GraphicsUnit.Document }; 172yield return new object[] { FontFamily.GenericMonospace, 1, FontStyle.Bold, GraphicsUnit.Document }; 214yield return new object[] { FontFamily.GenericMonospace, 1, FontStyle.Bold, GraphicsUnit.Document, 0 }; 256yield return new object[] { FontFamily.GenericMonospace, 1, FontStyle.Bold, GraphicsUnit.Document, 0, true }; 364AssertExtensions.Throws<ArgumentException>("emSize", () => new Font(family, emSize, GraphicsUnit.Document)); 365AssertExtensions.Throws<ArgumentException>("emSize", () => new Font(family.Name, emSize, GraphicsUnit.Document)); 366AssertExtensions.Throws<ArgumentException>("emSize", () => new Font(family, emSize, FontStyle.Italic, GraphicsUnit.Document)); 367AssertExtensions.Throws<ArgumentException>("emSize", () => new Font(family.Name, emSize, FontStyle.Italic, GraphicsUnit.Document)); 368AssertExtensions.Throws<ArgumentException>("emSize", () => new Font(family, emSize, FontStyle.Italic, GraphicsUnit.Document, 10)); 369AssertExtensions.Throws<ArgumentException>("emSize", () => new Font(family.Name, emSize, FontStyle.Italic, GraphicsUnit.Document, 10)); 370AssertExtensions.Throws<ArgumentException>("emSize", () => new Font(family, emSize, FontStyle.Italic, GraphicsUnit.Document, 10, gdiVerticalFont: true)); 371AssertExtensions.Throws<ArgumentException>("emSize", () => new Font(family.Name, emSize, FontStyle.Italic, GraphicsUnit.Document, 10, gdiVerticalFont: true)); 677[InlineData(GraphicsUnit.Document)]
System\Drawing\GraphicsTests.cs (3)
697[InlineData(GraphicsUnit.Document)] 737Assert.Throws<InvalidOperationException>(() => graphics.PageUnit = GraphicsUnit.Document); 753AssertExtensions.Throws<ArgumentException>(null, () => graphics.PageUnit = GraphicsUnit.Document);
System.Windows.Forms.Tests (2)
System\Windows\Forms\AxHostTests.cs (2)
1502[InlineData(GraphicsUnit.Document)] 1563[InlineData(GraphicsUnit.Document)]