Поделиться через


MatrixColumnProperties Class

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

Inheritance Hierarchy

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

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

Syntax

'Декларация
<ChildElementInfoAttribute(GetType(MatrixColumnCount))> _
<ChildElementInfoAttribute(GetType(MatrixColumnJustification))> _
Public Class MatrixColumnProperties _
    Inherits OpenXmlCompositeElement
'Применение
Dim instance As MatrixColumnProperties
[ChildElementInfoAttribute(typeof(MatrixColumnCount))]
[ChildElementInfoAttribute(typeof(MatrixColumnJustification))]
public class MatrixColumnProperties : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • MatrixColumnCount <m:count>

  • MatrixColumnJustification <m:mcJc>

[ISO/IEC 29500-1 редакция 1]

22.1.2.66 mcPr (Matrix Column Properties)

This element specifies the properties of the matrix column mn, including the number of columns and the type of justification. [Example: As an extreme example, the following matrix has two columns that are left justified (count is 2) and three columns that are right justified (count is 3). end example]

[Example:

is represented by the following XML:

<m:m>
  <m:mPr>
    <m:mcs>
      <m:mc>
        <m:mcPr>
          <m:count m:val="3"/>
          <m:mcJc m:val="right"/>
        </m:mcPr>
      </m:mc>
    </m:mcs>
  </m:mPr>
  <m:mr>
    <m:e>
      <m:r>
        <m:t>1</m:t>
      </m:r>
    </m:e>
    <m:e>
      <m:r>
        <m:t>2222</m:t>
      </m:r>
    </m:e>
    <m:e>
      <m:r>
        <m:t>3</m:t>
      </m:r>
    </m:e>
  </m:mr>
  <m:mr>
    <m:e>
      <m:r>
        <m:t>4444</m:t>
      </m:r>
    </m:e>
    <m:e>
      <m:r>
        <m:t>5</m:t>
      </m:r>
    </m:e>
    <m:e>
      <m:r>
        <m:t>6666</m:t>
      </m:r>
    </m:e>
  </m:mr>
</m:m>

All three columns are right aligned.

end example]

Parent Elements

mc (§22.1.2.64)

Child Elements

Subclause

count (Matrix Column Count)

§22.1.2.21

mcJc (Matrix Column Justification)

§22.1.2.65

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

© ISO/IEC29500: 2008. Приведенный выше текст переведен с английского языка на русский корпорацией Майкрософт (или ее подрядчиками) и 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

MatrixColumnProperties Members

DocumentFormat.OpenXml.Math Namespace