WordPerfectSpaceWidth Class

Space width.When the object is serialized out as xml, its qualified name is w:wpSpaceWidth.

Inheritance Hierarchy


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


Public Class WordPerfectSpaceWidth _
    Inherits OnOffType
Dim instance As WordPerfectSpaceWidth
public class WordPerfectSpaceWidth : OnOffType


[ISO/IEC 29500-1 1st Edition] wpSpaceWidth (Use Specific Space Width)

(The terms ascent and descent are used as defined in ISO/IEC 14496-22:2007.)

This element specifies that applications should perform determine the width of the space character for all proportional fonts used in this document using the calculation specified below.

Typically, applications calculate the width of a whitespace character dynamically to optimize for the output device. This element, when present with a val attribute value of true (or equivalent), specifies that applications should instead use the following algorithm to determine the width of a whitespace character:


  • is the width of a space character

  • is the ascent for the font

  • is the descent for the font

[Example: Consider a WordprocessingML document with this compatibility setting turned on:

<w:suppressTopSpacingWP />

If the font applied to a run specified an ascent value of 8 points and a descent value of 2 points, each space in that run would have a width of three and one-third points. end example]

Parent Elements

compat (Part 1, §

This element’s content model is defined by the common boolean property definition in Part 1, §17.17.4.

© 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


WordPerfectSpaceWidth Members

DocumentFormat.OpenXml.Wordprocessing Namespace