Pitch class

Office 2013 and later

Defines the Pitch Class. When the object is serialized out as xml, its qualified name is w:pitch.

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

public class Pitch : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition]

pitch (Font Pitch)

This element specifies the font pitch 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 default.

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

<w:font w:name="Courier New">
  <w:pitch w:val="fixed" />

The pitch element specifies via its val attribute value of fixed that this is a fixed width font. end example]

Parent Elements

font (§



val (Value)

Specifies the font pitch for the font.

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

<w:pitch w:val="variable" />

The val attribute value of variable specifies that this is a variable width font. end example]

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

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