Class ExcelTextFont¶
Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll
Used by Rich-text and Paragraphs.
Inheritance¶
object ← XmlHelper ← ExcelTextFont
Derived¶
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
Bold¶
If the font is bold
Property Value¶
Color¶
Sets the default color of the text.
This sets the Fill to a SolidFill with the specified color.
Property Value¶
ComplexFont¶
The complex font typeface name
Property Value¶
EastAsianFont¶
The East Asian typeface name
Property Value¶
Fill¶
A reference to the fill properties
Property Value¶
Italic¶
If the font is italic
Property Value¶
Kerning¶
Specifies the minimum font size at which character kerning occurs for this text run
Property Value¶
LatinFont¶
The latin typeface name
Property Value¶
Size¶
Font size
Property Value¶
Strike¶
Font strike out type
Property Value¶
UnderLine¶
The fonts underline style
Property Value¶
UnderLineColor¶
The fonts underline color
Property Value¶
Methods¶
CreateTopNode()¶
Creates the top nodes of the collection
SetFromFont(string, float, bool, bool, bool, bool)¶
Set the font style 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