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.

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public int Add(
	Font font
)
Visual Basic
Public Function Add ( _
	font As Font _
) As Integer

Parameters

font
Type: System.Drawing..::..Font
The Font to add.

Return Value

The index of the newly added font in the collection.

See Also