AllowSpaceOfSameStyleInTable Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.OnOffType
        DocumentFormat.OpenXml.Wordprocessing.AllowSpaceOfSameStyleInTable

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

Syntax

'Declaration
Public Class AllowSpaceOfSameStyleInTable _
    Inherits OnOffType
'Usage
Dim instance As AllowSpaceOfSameStyleInTable
public class AllowSpaceOfSameStyleInTable : OnOffType

Remarks

[ISO/IEC 29500-1 1st Edition]

9.7.3.2 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, §17.3.1.9) 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 />
</w:pPr>
</w:style>

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):

DocumentFormat.OpenXml.Wordprocessing.AllowSpaceOf

However, if this compatibility setting is turned on:

<w:compat>
<w:allowSpaceOfSameStyleInTable />
</w:compat>

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

DocumentFormat.OpenXml.Wordprocessing.AllowSpaceOf

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.

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

Reference

AllowSpaceOfSameStyleInTable Members

DocumentFormat.OpenXml.Wordprocessing Namespace