PdfDocumentGdiExtensions.AddFont Method (PdfDocument, Font)

Adds the new font with the properties of the specified Font to the end of the collection of document fonts.

Namespace:  BitMiracle.Docotic.Pdf.Gdi
Assembly:  BitMiracle.Docotic.Pdf.Gdi (in BitMiracle.Docotic.Pdf.Gdi.dll)


public static PdfFont AddFont(
	this PdfDocument doc,
	Font font
Public Shared Function AddFont ( 
	doc As PdfDocument,
	font As Font
) As PdfFont


Type: BitMiracle.Docotic.Pdf.PdfDocument
The document.
Type: System.Drawing.Font
The existing Font from which to create the new PdfFont.

Return Value

Type: PdfFont
The newly added PdfFont.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PdfDocument. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also