XlsWorkbook
CreateFont Method (Font)
|
Method creates a font object based on native font and register it in the workbook.
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(
Font nativeFont
)
Public Function CreateFont (
nativeFont As Font
) As IFont
public:
virtual IFont^ CreateFont(
Font^ nativeFont
) sealed
abstract CreateFont :
nativeFont : Font -> IFont
override CreateFont :
nativeFont : Font -> IFont
Parameters
-
nativeFont
-
Type:
System.Drawing
Font
Native font to get settings from.
Return Value
Type:
IFont
Newly created font.
Implements
IWorkbook
CreateFont(Font)
See Also