Click or drag to resize

XlsWorkbook CreateFont Method (IFont, Boolean)

Creates a new font based on the specified base font.

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public IFont CreateFont(
	IFont baseFont,
	bool bAddToCollection
)

Parameters

baseFont
Type: Spire.Xls.Core IFont
The base font to create a new font from.
bAddToCollection
Type: System Boolean
Indicates whether the new font should be added to the collection.

Return Value

Type: IFont
The newly created font.
See Also