RowSpacingRule class

Office 2013 and later

Row Spacing Rule. When the object is serialized out as xml, its qualified name is m:rSpRule.

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

No code example is currently available or this language may not be supported.

[ISO/IEC 29500-1 1st Edition]

rSpRule (Row Spacing Rule)

This element specifies the type of vertical spacing between columns in a matrix. The following table demonstrates possible values of rSpRule along with their definitions and examples.

Value

Line spacing between rows

Example (non-normative)

0

Single line gap

1

1.5 line gap

2

2 line gap

3

Exactly (rely on value of rGp, measured in points)

4

Multiple (rely on value of rGp, measured in lines)

Whether the element is absent or present without the val attribute, the default of the val attribute is 0 (or single line gap).

[Example:

is represented by the following XML:

<m:m>
  <m:mPr>
    <m:rSpRule m:val="2"/>
  </m:mPr>
  <m:mr>
    <m:e>
      <m:r>
        <m:t>1</m:t>
      </m:r>
    </m:e>
    <m:e>
      <m:r>
        <m:t>2</m:t>
      </m:r>
    </m:e>
  </m:mr>
  <m:mr>
    <m:e>
      <m:r>
        <m:t>3</m:t>
      </m:r>
    </m:e>
    <m:e>
      <m:r>
        <m:t>4</m:t>
      </m:r>
    </m:e>
  </m:mr>
</m:m>

Because the row spacing rule is set to 2, there is twice as much space between the matrix rows as usual.

end example]

Parent Elements

eqArrPr (§22.1.2.35); mPr (§22.1.2.68)

Attributes

Description

val (Value)

Specifies the type of spacing between rows and/or columns. Possible values are 0, 1, 2, 3, or 4, whose definitions are contained in the following table:

Value

Column/Row Gap

Example

0

Single spacing gap (1 em)

1

1.5 spacing gap (1.5 ems)

2

2 spacing gap (2 ems)

3

Exactly(for columns, rely on value of cGp, measured in twips)

(for rows, rely on value of rSp, measured in points)

4

Multiple

(for columns, rely on value of cGp, measured in 0.5 em increments)

(for rows, rely on value of rSp, measured in lines)

The possible values for this attribute are defined by the ST_SpacingRule simple type (§22.1.3.11).

[Note: The W3C XML Schema definition of this element’s content model (CT_SpacingRule) is located in §A.6.1. end note]

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