Class FontSize¶
Namespace: OfficeOpenXml
Assembly: EPPlus.dll
A collection of fonts and there size in pixels used when determining auto widths for columns. This is used as .NET and Excel does not measure font widths in pixels in a similar way.
Inheritance¶
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Constructors¶
FontSize()¶
Fields¶
DefaultFont¶
Default font used in EPPlus
Field Value¶
FontHeights¶
Dictionary containing default Font Heights in pixels for the row height calculates. You can add your own fonts and sizes here.
Field Value¶
Dictionary<string, Dictionary<float, short>>
FontWidths¶
Dictionary containing Font Width in pixels. You can add your own fonts and sizes here.
Field Value¶
Dictionary<string, Dictionary<float, short>>
NonExistingFont¶
Font used in EPPlus if the font name supplied cannot be found
Field Value¶
Methods¶
LoadAllFontsFromResource()¶
Load the fonts default heights/widths from the internal resource file
LoadFontsFromResource(string, bool)¶
Load the specified fonts default heights/widths from the internal resource file
Parameters¶
fontName string
The name of the font.
disposeStream bool
If false the stream is loading the font is kept open to load other fonts faster. It true the font-stream is disposed on exit.