Partager via


RowSpacing Class

Row Spacing (Equation Array).When the object is serialized out as xml, its qualified name is m:rSp.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Math.UnsignedShortType
        DocumentFormat.OpenXml.Math.RowSpacing

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

Syntax

'Declaration
Public Class RowSpacing _
    Inherits UnsignedShortType
'Usage
Dim instance As RowSpacing
public class RowSpacing : UnsignedShortType

Remarks

[ISO/IEC 29500-1 1st Edition]

22.1.2.92 rSp (Row Spacing (Array))

This element specifies spacing between rows of an array eqArr; it is used only when rSpRule is set to 3 (exactly; in which case the unit of measure is points) or 4 (Multiple; in which case the unit of measure is half-lines). If this element is omitted, single line spacing is used in the array, and no additional spacing is used in the layout of rows. Whether the element is absent or present without the val attribute, the default of the val attribute is 0.

[Example: Below are three examples of the same array, with single line spacing, 1.5 line spacing, and double line spacing:

The following eqArr has rSp of 3 half-lines:

<m:eqArr>
<m:eqArrPr>
<m:rSpRule  m:val="4"/>
<m:rSp m:val="3"/>
</m:eqArrPr>
  <m:e>
<m:r>
<m:t>a=b+c</m:t>
</m:r>
</m:e>
  <m:e>
<m:r>
<m:t>d+e=f</m:t>
</m:r>
</m:e>
</m:eqArr>

end example]

Parent Elements

eqArrPr (§22.1.2.35); mPr (§22.1.2.68)

Attributes

Description

val (Value)

Specifies the amount of space between columns of the parent element (for cGp/cSp) or rows (for rSp). The manner in which this value is determined depends on the setting of the rule of the parent element.

For cGp, if the rule is set to 3 (or "Exactly"), then the unit is interpreted as twips. If the rule is set to 4 (or "Multiple"), then the unit is interpreted as number of 0.5 em increments.

For cSp, this value is measured in twips. There is no corresponding cSpRule.

For rSp, if the rule is set to 3 (or "Exactly"), then the unit is interpreted as points. If the rule is set to 4 (or "Multiple"), then the unit is interpreted as half-lines.

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

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

© 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

RowSpacing Members

DocumentFormat.OpenXml.Math Namespace