[]
        
(Showing Draft Content)

C1.WPF.Excel.XLFont.-ctor

XLFont Constructor

XLFont(string, float)

Excel font initialization.

Declaration
public XLFont(string fontName, float fontSize)
Public Sub New(fontName As String, fontSize As Single)
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)
Public Sub New(fontName As String, fontSize As Single, color As 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)
Public Sub New(fontName As String, fontSize As Single, bold As Boolean, italic As Boolean)
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)
Public Sub New(fontName As String, fontSize As Single, bold As Boolean, italic As Boolean, color As 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)

Excel font initialization.

Declaration
public XLFont(string fontName, float fontSize, bool bold, bool italic, bool strikeout, XLFontScript fs, XLUnderlineStyle us, Color color)
Public Sub New(fontName As String, fontSize As Single, bold As Boolean, italic As Boolean, strikeout As Boolean, fs As XLFontScript, us As XLUnderlineStyle, color As 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.

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.

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)
Public Sub New(fontName As String, fontSize As Single, bold As Boolean, italic As Boolean, strikeout As Boolean, fs As XLFontScript, us As XLUnderlineStyle, color As Color, charSet As Byte)
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.