Export (0) Print
Expand All

UseNormalStyleForList class

Do Not Automatically Apply List Paragraph Style To Bulleted/Numbered Text. When the object is serialized out as xml, its qualified name is w:useNormalStyleForList.

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

public class UseNormalStyleForList : OnOffType

[ISO/IEC 29500-1 1st Edition]

useNormalStyleForList (Do Not Automatically Apply List Paragraph Style To Bulleted/Numbered Text)

This element specifies whether applications shall automatically apply the paragraph style with the styleId attribute ListParagraph when numbering is applied to a paragraph currently formatted using the default paragraph style.

Typically, when a paragraph is formatted using the default paragraph style, and numbering is subsequently applied, the paragraph style with the styleId attribute ListParagraph when numbering is applied to ensure that paragraph properties are appropriate for a numbered paragraph. This element, when present with a val attribute value of true (or equivalent), specifies that no alternate paragraph style shall ever be applied

[Example: Consider a WordprocessingML document with five unnumbered paragraphs:

If numbering is applied to the three center paragraphs, the default presentation would have the ListParagraph style applied as well:

However, if this compatibility setting is turned on:

<w:compat>
  <w:useNormalStyleForList />
</w:compat>

Then the new paragraph style must not be applied, resulting in the following output:

end example]

Parent Elements

compat (Part 1, §17.15.1.21)

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.
Show:
© 2015 Microsoft