FontFamily Class

Font Family.When the object is serialized out as xml, its qualified name is w:family.

Inheritance Hierarchy

System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.FontFamily

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

Syntax

'宣言
Public Class FontFamily _
    Inherits OpenXmlLeafElement
'使用
Dim instance As FontFamily
public class FontFamily : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 初版]

17.8.3.9 family (Font Family)

This element specifies the font family of the current font. This information can be used as defined in font substitution logic to locate an appropriate substitute font when this font is not available. This information is determined by querying the font when present and shall not be modified when the font is not available.

If this element is omitted, then its value shall be assumed to be auto.

[Example: Consider the following information stored for a single font:

<w:font w:name="Calibri">
<w:family w:val="swiss" />
…
</w:font>

The family element specifies via its val attribute value of swiss that this font is part of the Swiss family. end example]

Parent Elements

font (§17.8.3.10)

Attributes

Description

val (Font Family Value)

Specifies the font family for the parent font.

[Example: Consider the following information stored for a single font:

<w:font w:name="Times New Roman">
<w:family w:val="roman" />
…
</w:font>

The val attribute value of swiss that this font is part of the Roman family. end example]

The possible values for this attribute are defined by the ST_FontFamily simple type (§17.18.30).

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

© ISO/IEC29500: 2008. 上記の引用はマイクロソフト (またはその代理) によって英語から日本語に翻訳されたものであり、ISO はこうした翻訳に対する責任を一切負いません。

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

FontFamily Members

DocumentFormat.OpenXml.Wordprocessing Namespace