PrintDocument for WPF | ComponentOne
C1.WPF.PrintDocument.4.6.2 Assembly / C1.C1Preview Namespace / EmbeddedFontCollection Class / Add Method / Add(Font) Method
The System.Drawing.Font to add.

In This Topic
    Add(Font) Method
    In This Topic
    Builds an EmbeddedFont based on the specified font, and adds it to the current collection. Throws an exception if the font is already present in the collection.
    Syntax
    'Declaration
     
    Public Overloads Function Add( _
       ByVal font As Font _
    ) As Integer
    public int Add( 
       Font font
    )

    Parameters

    font
    The System.Drawing.Font to add.

    Return Value

    The index of the newly added font in the collection.
    See Also