Export (0) Print
Expand All

AllowSpaceOfSameStyleInTable class

Allow Contextual Spacing of Paragraphs in Tables. When the object is serialized out as xml, its qualified name is w:allowSpaceOfSameStyleInTable.

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

public class AllowSpaceOfSameStyleInTable : OnOffType

[ISO/IEC 29500-1 1st Edition]

allowSpaceOfSameStyleInTable (Allow Contextual Spacing of Paragraphs in Tables)

This element specifies whether the suppression of additional space (contextual spacing) defined using the contextualSpacing element (Part 1, § shall be applied to paragraphs contained within tables.

Typically, the rules for the removal of additional paragraph spacing via the contextualSpacing element are applied to all paragraphs in a WordprocessingML document. This element, when present with a val attribute value of true (or equivalent), specifies that this setting shall always be ignored for paragraphs in table cells (and additional spacing shall be allowed).

[Example: Consider a WordprocessingML document with a default paragraph style with additional spacing after and contextual spacing set, as follows:

<w:style w:name="Normal" w:default="1">
  …  <w:pPr>
    <w:spacing w:after="200" />
    <w:contextualSpacing />

The default presentation would have the spacing suppressed between all paragraphs, since they are all of the default paragraph style defined above (contextual spacing applies):

However, if this compatibility setting is turned on:

  <w:allowSpaceOfSameStyleInTable />

Then the paragraphs in the table never have their spacing suppressed, resulting in the following output:

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