Share via


ColumnGapRule Class

Matrix Column Gap Rule.When the object is serialized out as xml, its qualified name is m:cGpRule.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Math.SpacingRuleType
        DocumentFormat.OpenXml.Math.ColumnGapRule

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

Syntax

'Declaration
Public Class ColumnGapRule _
    Inherits SpacingRuleType
'Usage
Dim instance As ColumnGapRule
public class ColumnGapRule : SpacingRuleType

Remarks

[ISO/IEC 29500-1 1st Edition]

22.1.2.19 cGpRule (Matrix Column Gap Rule)

This element specifies the type of gap (horizontal spacing) between columns of a matrix; the default is '0'. Horizontal spacing units can be ems or points (stored as twips).

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

[Example: The following matrix has double spacing (2 ems) between columns:

The XML that represents this property in use is:

<m:mPr>
<m:cGpRule  m:val="2"/>
<m:mcs>
<m:mc>
<m:mcPr>
        <m:count  m:val="2"/>
<m:mcJc  m:val="center"/>
</m:mcPr>
</m:mc>
</m:mcs>
</m:mPr>

end example]

Parent Elements

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.

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

ColumnGapRule Members

DocumentFormat.OpenXml.Math Namespace