FontReference class

Office 2013 and later

Defines the FontReference Class. When the object is serialized out as xml, its qualified name is a:fontRef.

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

No code example is currently available or this language may not be supported.

[ISO/IEC 29500-1 1st Edition]

fontRef (Font Reference)

This element represents a reference to a themed font. When used it specifies which themed font to use along with a choice of color.

[Example: Consider the following example of a font reference within DrawingML:

<fontRef idx="minor">
  <schemeClr val="tx1"/>
</fontRef>

In this example, we see a font referencing the minor font defined within the theme. end example]

Parent Elements

style (§21.3.2.24); style (§21.4.2.28); style (§20.1.2.2.37); style (§20.5.2.31); style (§19.3.1.46); tcTxStyle (§20.1.4.2.30)

Child Elements

Subclause

hslClr (Hue, Saturation, Luminance Color Model)

§20.1.2.3.13

prstClr (Preset Color)

§20.1.2.3.22

schemeClr (Scheme Color)

§20.1.2.3.29

scrgbClr (RGB Color Model - Percentage Variant)

§20.1.2.3.30

srgbClr (RGB Color Model - Hex Variant)

§20.1.2.3.32

sysClr (System Color)

§20.1.2.3.33

Attributes

Description

idx (Identifier)

Specifies the identifier of the font to reference.

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

[Note: The W3C XML Schema definition of this element’s content model (CT_FontReference) is located in §A.4.1. 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.
Show: