Class ExcelFont
- Namespace
- OfficeOpenXml.Style
- Assembly
- EPPlus.dll
Cell style Font
public sealed class ExcelFont : StyleBase
- Inheritance
-
ExcelFont
- Inherited Members
Properties
Bold
Font-bold
public bool Bold { get; set; }
Property Value
Charset
The character set for the font
public int? Charset { get; set; }
Property Value
- int?
Remarks
The following values can be used for this property
Color
Cell color
public ExcelColor Color { get; }
Property Value
Family
Font family
public int Family { get; set; }
Property Value
Italic
Font-italic
public bool Italic { get; set; }
Property Value
Name
The name of the font
public string Name { get; set; }
Property Value
Scheme
Scheme
public string Scheme { get; set; }
Property Value
Size
The Size of the font
public float Size { get; set; }
Property Value
Strike
Font-Strikeout
public bool Strike { get; set; }
Property Value
UnderLine
Font-Underline
public bool UnderLine { get; set; }
Property Value
UnderLineType
The underline style
public ExcelUnderLineType UnderLineType { get; set; }
Property Value
VerticalAlign
Font-Vertical Align
public ExcelVerticalAlignmentFont VerticalAlign { get; set; }
Property Value
Methods
SetFromFont(string, float, bool, bool, bool, bool)
Set the font from a Font object
public void SetFromFont(string name, float size, bool bold = false, bool italic = false, bool underline = false, bool strikeout = false)