MatrixProperties Class

Matrix Properties.When the object is serialized out as xml, its qualified name is m:mPr.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Math.MatrixProperties

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

Syntax

声明
<ChildElementInfoAttribute(GetType(BaseJustification))> _
<ChildElementInfoAttribute(GetType(RowSpacing))> _
<ChildElementInfoAttribute(GetType(HidePlaceholder))> _
<ChildElementInfoAttribute(GetType(RowSpacingRule))> _
<ChildElementInfoAttribute(GetType(ColumnGapRule))> _
<ChildElementInfoAttribute(GetType(ColumnSpacing))> _
<ChildElementInfoAttribute(GetType(ColumnGap))> _
<ChildElementInfoAttribute(GetType(MatrixColumns))> _
<ChildElementInfoAttribute(GetType(ControlProperties))> _
Public Class MatrixProperties _
    Inherits OpenXmlCompositeElement
用法
Dim instance As MatrixProperties
[ChildElementInfoAttribute(typeof(BaseJustification))]
[ChildElementInfoAttribute(typeof(RowSpacing))]
[ChildElementInfoAttribute(typeof(HidePlaceholder))]
[ChildElementInfoAttribute(typeof(RowSpacingRule))]
[ChildElementInfoAttribute(typeof(ColumnGapRule))]
[ChildElementInfoAttribute(typeof(ColumnSpacing))]
[ChildElementInfoAttribute(typeof(ColumnGap))]
[ChildElementInfoAttribute(typeof(MatrixColumns))]
[ChildElementInfoAttribute(typeof(ControlProperties))]
public class MatrixProperties : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • BaseJustification <m:baseJc>

  • HidePlaceholder <m:plcHide>

  • RowSpacingRule <m:rSpRule>

  • ColumnGapRule <m:cGpRule>

  • RowSpacing <m:rSp>

  • ColumnSpacing <m:cSp>

  • ColumnGap <m:cGp>

  • MatrixColumns <m:mcs>

  • ControlProperties <m:ctrlPr>

[ISO/IEC 29500-1 第 1 个版本]

22.1.2.68 mPr (Matrix Properties)

This element specifies properties of the matrix m, including the justification of the matrix and the layout of elements within the matrix. [Example:

is represented by the following XML:

<m:oMath>
  <m:r>
    <m:t>a+</m:t>
  </m:r>
  <m:m>
    <m:mPr>
      <m:baseJc m:val="top"/>
    </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>
  <m:r>
    <m:t>+b</m:t>
  </m:r>
</m:oMath>

This top row of the matrix is aligned with the rest of the baseline.

end example]

Parent Elements

m (§22.1.2.60)

Child Elements

Subclause

baseJc (Matrix Base Justification)

§22.1.2.9

cGp (Matrix Column Gap)

§22.1.2.18

cGpRule (Matrix Column Gap Rule)

§22.1.2.19

cSp (Minimum Matrix Column Width)

§22.1.2.22

ctrlPr (Control Properties)

§22.1.2.23

mcs (Matrix Columns)

§22.1.2.67

plcHide (Hide Placeholders (Matrix))

§22.1.2.83

rSp (Row Spacing (Array))

§22.1.2.92

rSpRule (Row Spacing Rule)

§22.1.2.93

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

© ISO/IEC29500: 2008. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,ISO 对此翻译不承担任何责任。

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

MatrixProperties Members

DocumentFormat.OpenXml.Math Namespace