Partager via


Fonts Class

Font Table Root Element. It is the root element of FontTablePart.When the object is serialized out as xml, its qualified name is w:fonts.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.OpenXmlPartRootElement
        DocumentFormat.OpenXml.Wordprocessing.Fonts

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Font))> _
Public Class Fonts _
    Inherits OpenXmlPartRootElement
'Usage
Dim instance As Fonts
[ChildElementInfoAttribute(typeof(Font))]
public class Fonts : OpenXmlPartRootElement

Remarks

The following table lists the possible child types:

  • Font <w:font>

[ISO/IEC 29500-1 1st Edition]

17.8.3.11 fonts (Font Table Root Element)

This element specifies the root element for a font table part within a WordprocessingML document, and specifies information about the fonts used in this document, each contained within a child font element.

[Example: Consider the following information stored in a font table part:

<w:fonts>
<w:font w:name="Times New Roman">
…
</w:font>
<w:font w:name="Arial">
…
</w:font>
</w:fonts>

The fonts element contains information about all fonts used in the document - in this example, the Times New Roman and Arial fonts. end example]

Parent Elements

Root element of WordprocessingML Font Table part

Child Elements

Subclause

font (Properties for a Single Font)

§17.8.3.10

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

© ISO/IEC29500: 2008.

Thread Safety

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

See Also

Reference

Fonts Members

DocumentFormat.OpenXml.Wordprocessing Namespace