NoLeading class

Office 2013 and later

Do Not Add Leading Between Lines of Text. When the object is serialized out as xml, its qualified name is w:noLeading.

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

public class NoLeading : OnOffType

[ISO/IEC 29500-1 1st Edition]

noLeading (Do Not Add Leading Between Lines of Text)

This element specifies whether the additional leading specified by the current font face shall be added between each line of text when that text is displayed. Leading refers to the additional spacing requested by a particular font in order to ensure that letters on subsequent lines do not display in a fashion where they are positioned too closely together.

Typically, leading should be added as specified by the associated font. This element, when present with a val attribute value of true (or equivalent), specifies that the additional leading specified by the font shall never be output when the text is displayed.

[Example: Consider a WordprocessingML document with three lines of text. The default presentation would have the text displayed as follows:

However, if this compatibility setting is turned on:

  <w:noLeading />

Then no leading is added between lines, resulting in the following output:

This adjustment is usually very minute in nature; therefore the result is better illustrated by showing how the characters were pushed out due to the leading added to that text:

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.

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