Click or drag to resize

IWorkbook CreateFont Method (Font)

Method creates a font object based on native font and register it in the workbook.

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
IFont CreateFont(
	Font nativeFont
)

Parameters

nativeFont
Type: System.Drawing Font
Native font to get settings from.

Return Value

Type: IFont
Newly created font.
See Also