Class ExcelFontXml¶
Namespace: OfficeOpenXml.Style.XmlAccess
Assembly: EPPlus.dll
Xml access class for fonts
Inheritance¶
object ← XmlHelper ← StyleXmlHelper ← ExcelFontXml
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
Bold¶
If the font is bold
Property Value¶
Charset¶
The character set for the font
Property Value¶
int?
Remarks¶
The following values can be used for this property.
Color¶
Text color
Property Value¶
Family¶
Font family
Property Value¶
Italic¶
If the font is italic
Property Value¶
Name¶
The name of the font
Property Value¶
Scheme¶
Font Scheme
Property Value¶
Size¶
Font size
Property Value¶
Strike¶
If the font is striked out
Property Value¶
UnderLine¶
If the font is underlined. When set to true a the text is underlined with a single line
Property Value¶
UnderLineType¶
If the font is underlined
Property Value¶
VerticalAlign¶
Vertical aligned
Property Value¶
Methods¶
SetFromFont(string, float, bool, bool, bool, bool)¶
Set the font properties
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