[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.FontInfoCollection.Add

Add Method

Add(string)

Adds a font with a specified primary name to the collection.

Declaration
public FontInfo Add(string name)
Public Function Add(name As String) As FontInfo
Parameters
Type Name Description
string name

The primary name of the font to add.

Returns
Type Description
FontInfo

The newly created FontInfo instance.

Add(Font, bool)

Adds a new font into the collection.

Declaration
public FontInfo Add(Font font, bool embed = false)
Public Function Add(font As Font, Optional embed As Boolean = False) As FontInfo
Parameters
Type Name Description
Font font

The GrapeCity.Documents.Text.Font to add.

bool embed

Whether to embed the specified font.

Returns
Type Description
FontInfo

A newly created FontInfo if embed is false, otherwise it can be existing FontInfo that now contains the embedded font.