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
)
Public Function CreateFont (
baseFont As IFont,
bAddToCollection As Boolean
) As IFont
public:
IFont^ CreateFont(
IFont^ baseFont,
bool bAddToCollection
)
member CreateFont :
baseFont : IFont *
bAddToCollection : bool -> IFont
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