Class ExcelFont¶
Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll
Cell style Font
Inheritance¶
object ← StyleBase ← ExcelFont
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
Bold¶
Font-bold
Property Value¶
Charset¶
The character set for the font
Property Value¶
int?
Remarks¶
The following values can be used for this property
Color¶
Cell color
Property Value¶
Family¶
Font family
Property Value¶
Italic¶
Font-italic
Property Value¶
Name¶
The name of the font
Property Value¶
Scheme¶
Scheme
Property Value¶
Size¶
The Size of the font
Property Value¶
Strike¶
Font-Strikeout
Property Value¶
UnderLine¶
Font-Underline
Property Value¶
UnderLineType¶
The underline style
Property Value¶
VerticalAlign¶
Font-Vertical Align
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)
Parameters¶
name string
Font family name
size float
Font size
bold bool
italic bool
underline bool
strikeout bool