CreateFont Method

Summary

Creates a new Font object with specified attributes, allowing for detailed customization of text appearance in the workbook. Provides the ability to define fonts with specific names, sizes, styles, and colors, which can then be applied to cell styles.

Syntax

TypeScript
JavaScript
LEADWorkbook.prototype.createFont = function( 
   fontName, 
   size, 
   fontStyle, 
   color 
) 
createFont( 
   fontName: string, 
   size: number, 
   fontStyle: FontStyle, 
   color: string 
): Font; 

Parameters

fontName

A string specifying the name of the font.

size

A double representing the font size in points.

fontStyle

A FontStyle enumeration value indicating the style of the font.

color

A string specifying the color of the font.

Return Value

A new instance of the Font object configured with the specified font attributes.

Requirements

Target Platforms

See Also

LEADWorkbook Class

LEADWorkbook Members

Leadtools.Document.SheetEditor Namespace

Help Version 23.0.2024.5.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.SheetEditor Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.