This documentation is archived and is not being maintained.

Font Class

Font Properties.When the object is serialized out as xml, its qualified name is x:font.

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class Font : OpenXmlCompositeElement

The following table lists the possible child types:

  • Bold <x:b>

  • Italic <x:i>

  • Strike <x:strike>

  • Condense <x:condense>

  • Extend <x:extend>

  • Outline <x:outline>

  • Shadow <x:shadow>

  • Underline <x:u>

  • VerticalTextAlignment <x:vertAlign>

  • FontSize <x:sz>

  • Color <x:color>

  • FontName <x:name>

  • FontFamilyNumbering <x:family>

  • FontCharSet <x:charset>

  • FontScheme <x:scheme>

[ISO/IEC 29500-1 1st Edition]

18.8.22 font (Font)

This element defines the properties for one of the fonts used in this workbook.

Parent Elements

dxf (§18.8.14); fonts (§18.8.23); ndxf (§; odxf (§

Child Elements


b (Bold)


charset (Character Set)


color (Data Bar Color)


condense (Condense)


extend (Extend)


family (Font Family)


i (Italic)


name (Font Name)


outline (Outline)


scheme (Scheme)


shadow (Shadow)


strike (Strike Through)


sz (Font Size)


u (Underline)


vertAlign (Vertical Alignment)


[Note: The W3C XML Schema definition of this element’s content model (CT_Font) is located in §A.2. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.