[]
        
(Showing Draft Content)

C1.C1Preview.EmbeddedFontCollection.Add

Add Method

Add(EmbeddedFont)

Adds the specified EmbeddedFont to the current collection. Throws an exception if the font is already present in the collection.

Declaration
public int Add(EmbeddedFont embeddedFont)
Parameters
Type Name Description
EmbeddedFont embeddedFont

The EmbeddedFont to add.

Returns
Type Description
int

The index of the newly added font in the collection.

Add(Font)

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.

Declaration
public int Add(Font font)
Parameters
Type Name Description
Font font

The Font to add.

Returns
Type Description
int

The index of the newly added font in the collection.