Show / Hide Table of Contents

Class ExcelFontXml

Xml access class for fonts

Inheritance
System.Object
XmlHelper
StyleXmlHelper
ExcelFontXml
Inherited Members
StyleXmlHelper.GetBoolValue(XmlNode, String)
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.Style.XmlAccess
Assembly: EPPlus.dll
Syntax
public sealed class ExcelFontXml : StyleXmlHelper

Properties

Bold

If the font is bold

Declaration
public bool Bold { get; set; }
Property Value
Type Description
System.Boolean

Charset

The character set for the font

Declaration
public int? Charset { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>
Remarks

The following values can be used for this property.

Color

Text color

Declaration
public ExcelColorXml Color { get; }
Property Value
Type Description
ExcelColorXml

Family

Font family

Declaration
public int Family { get; set; }
Property Value
Type Description
System.Int32

Italic

If the font is italic

Declaration
public bool Italic { get; set; }
Property Value
Type Description
System.Boolean

Name

The name of the font

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

Scheme

Font Scheme

Declaration
public string Scheme { get; }
Property Value
Type Description
System.String

Size

Font size

Declaration
public float Size { get; set; }
Property Value
Type Description
System.Single

Strike

If the font is striked out

Declaration
public bool Strike { get; set; }
Property Value
Type Description
System.Boolean

UnderLine

If the font is underlined. When set to true a the text is underlined with a single line

Declaration
public bool UnderLine { get; set; }
Property Value
Type Description
System.Boolean

UnderLineType

If the font is underlined

Declaration
public ExcelUnderLineType UnderLineType { get; set; }
Property Value
Type Description
ExcelUnderLineType

VerticalAlign

Vertical aligned

Declaration
public string VerticalAlign { get; set; }
Property Value
Type Description
System.String

Methods

SetFromFont(Font)

Sets the font from a system font object

Declaration
public void SetFromFont(Font Font)
Parameters
Type Name Description
System.Drawing.Font Font

The font

In This Article
Back to top Generated by DocFX