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