[]
        
(Showing Draft Content)

C1.Excel.XLFont.-ctor

XLFont Constructor

XLFont(string, float)

Excel font initialization.

Declaration
public XLFont(string fontName, float fontSize)
Parameters
Type Name Description
string fontName

The font name, by default Arial.

float fontSize

The font size in points, by default 10 pt.

XLFont(string, float, Color)

Excel font initialization.

Declaration
public XLFont(string fontName, float fontSize, Color color)
Parameters
Type Name Description
string fontName

The font name, by default Arial.

float fontSize

The font size in points, by default 10 pt.

Color color

The foreground color of the font, by default Black.

XLFont(string, float, bool, bool)

Excel font initialization.

Declaration
public XLFont(string fontName, float fontSize, bool bold, bool italic)
Parameters
Type Name Description
string fontName

The font name, by default Arial.

float fontSize

The font size in points, by default 10 pt.

bool bold

The bold flag of the font.

bool italic

The italic flag of the font.

XLFont(string, float, bool, bool, Color)

Excel font initialization.

Declaration
public XLFont(string fontName, float fontSize, bool bold, bool italic, Color color)
Parameters
Type Name Description
string fontName

The font name, by default Arial.

float fontSize

The font size in points, by default 10 pt.

bool bold

The bold flag of the font.

bool italic

The italic flag of the font.

Color color

The foreground color of the font, by default Black.

XLFont(string, float, bool, bool, bool, XLFontScript, XLUnderlineStyle, Color, byte)

Excel font initialization.

Declaration
public XLFont(string fontName, float fontSize, bool bold, bool italic, bool strikeout, XLFontScript fs, XLUnderlineStyle us, Color color, byte charSet = 0)
Parameters
Type Name Description
string fontName

The font name, by default Arial.

float fontSize

The font size in points, by default 10 pt.

bool bold

The bold flag of the font.

bool italic

The italic flag of the font.

bool strikeout

The strikeout flag of the font.

XLFontScript fs

The font superscript/subscript, by default None.

XLUnderlineStyle us

Select XLUnderlineStyle as underline style, by default None.

Color color

The foreground color of the font, by default Black.

byte charSet

The character set of the font, by default zero.