[]
        
(Showing Draft Content)

C1.Util.Font.Create

Create Method

Create(Font, float, FontStyle)

Create font using document font with real data.

Declaration
public static Font Create(Font font, float sizeInPoints, FontStyle style = FontStyle.Regular)
Parameters
Type Name Description
Font font

The document font with real data

float sizeInPoints

The font size in points.

FontStyle style

Font style attributes.

Returns
Type Description
Font

The font object.

Create(string, float, FontStyle)

Create font using document font with real data.

Declaration
public static Font Create(string fontName, float sizeInPoints, FontStyle style = FontStyle.Regular)
Parameters
Type Name Description
string fontName

The document font with real data.

float sizeInPoints

The font size in points.

FontStyle style

Font style attributes.

Returns
Type Description
Font

The font object.

Create(XLFont)

Create font using document font with real data.

Declaration
public static Font Create(XLFont xlf)
Parameters
Type Name Description
XLFont xlf

The C1.Excel.XLFont object.

Returns
Type Description
Font

The font object.