Show / Hide Table of Contents

Class FontSize

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
System.Object
FontSize
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml
Assembly: EPPlus.dll
Syntax
public static class FontSize

Fields

DefaultFont

Declaration
public const string DefaultFont = "Calibri"
Field Value
Type Description
System.String

FontHeights

Dictionary containing default Font Heights in pixels for the row height calculates. You can add your own fonts and sizes here.

Declaration
public static Dictionary<string, Dictionary<float, short>> FontHeights
Field Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.Dictionary<System.Single, System.Int16>>

FontWidths

Dictionary containing Font Width in pixels. You can add your own fonts and sizes here.

Declaration
public static Dictionary<string, Dictionary<float, short>> FontWidths
Field Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.Dictionary<System.Single, System.Int16>>

NonExistingFont

Declaration
public const string NonExistingFont = "Arial"
Field Value
Type Description
System.String

Methods

LoadAllFontsFromResource()

Declaration
public static void LoadAllFontsFromResource()

LoadFontsFromResource(String)

Declaration
public static void LoadFontsFromResource(string fontName)
Parameters
Type Name Description
System.String fontName
In This Article
Back to top Generated by DocFX