共用方式為


MathProperties Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(WrapIndent))> _
<ChildElementInfoAttribute(GetType(RightMargin))> _
<ChildElementInfoAttribute(GetType(DefaultJustification))> _
<ChildElementInfoAttribute(GetType(MathFont))> _
<ChildElementInfoAttribute(GetType(BreakBinary))> _
<ChildElementInfoAttribute(GetType(BreakBinarySubtraction))> _
<ChildElementInfoAttribute(GetType(SmallFraction))> _
<ChildElementInfoAttribute(GetType(DisplayDefaults))> _
<ChildElementInfoAttribute(GetType(LeftMargin))> _
<ChildElementInfoAttribute(GetType(PreSpacing))> _
<ChildElementInfoAttribute(GetType(PostSpacing))> _
<ChildElementInfoAttribute(GetType(InterSpacing))> _
<ChildElementInfoAttribute(GetType(IntraSpacing))> _
<ChildElementInfoAttribute(GetType(WrapRight))> _
<ChildElementInfoAttribute(GetType(IntegralLimitLocation))> _
<ChildElementInfoAttribute(GetType(NaryLimitLocation))> _
Public Class MathProperties _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As MathProperties
[ChildElementInfoAttribute(typeof(WrapIndent))]
[ChildElementInfoAttribute(typeof(RightMargin))]
[ChildElementInfoAttribute(typeof(DefaultJustification))]
[ChildElementInfoAttribute(typeof(MathFont))]
[ChildElementInfoAttribute(typeof(BreakBinary))]
[ChildElementInfoAttribute(typeof(BreakBinarySubtraction))]
[ChildElementInfoAttribute(typeof(SmallFraction))]
[ChildElementInfoAttribute(typeof(DisplayDefaults))]
[ChildElementInfoAttribute(typeof(LeftMargin))]
[ChildElementInfoAttribute(typeof(PreSpacing))]
[ChildElementInfoAttribute(typeof(PostSpacing))]
[ChildElementInfoAttribute(typeof(InterSpacing))]
[ChildElementInfoAttribute(typeof(IntraSpacing))]
[ChildElementInfoAttribute(typeof(WrapRight))]
[ChildElementInfoAttribute(typeof(IntegralLimitLocation))]
[ChildElementInfoAttribute(typeof(NaryLimitLocation))]
public class MathProperties : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • MathFont <m:mathFont>

  • BreakBinary <m:brkBin>

  • BreakBinarySubtraction <m:brkBinSub>

  • SmallFraction <m:smallFrac>

  • DisplayDefaults <m:dispDef>

  • LeftMargin <m:lMargin>

  • RightMargin <m:rMargin>

  • DefaultJustification <m:defJc>

  • PreSpacing <m:preSp>

  • PostSpacing <m:postSp>

  • InterSpacing <m:interSp>

  • IntraSpacing <m:intraSp>

  • WrapIndent <m:wrapIndent>

  • WrapRight <m:wrapRight>

  • IntegralLimitLocation <m:intLim>

  • NaryLimitLocation <m:naryLim>

[ISO/IEC 29500-1 1st Edition]

22.1.2.62 mathPr (Math Properties)

This element specifies the document-level properties for all math in the document.

[Example:

<m:mathPr>
  <m:mathFont m:val="Cambria Math"/>
  <m:brkBin m:val="before"/>
  <m:brkBinSub m:val="--"/>
  <m:smallFrac m:val="0"/>
  <m:dispDef/>
  <m:lMargin m:val="0"/>
  <m:rMargin m:val="0"/>
  <m:defJc m:val="centerGroup"/>
  <m:wrapIndent m:val="1440"/>
  <m:intLim m:val="subSup"/>
  <m:naryLim m:val="undOvr"/>
</m:mathPr>

These are the default settings for the math properties element and its children.

end example]

Parent Elements

settings (§17.15.1.78)

Child Elements

Subclause

brkBin (Break on Binary Operators)

§22.1.2.16

brkBinSub (Break on Binary Subtraction)

§22.1.2.17

defJc (Default Justification)

§22.1.2.25

dispDef (Use Display Math Defaults)

§22.1.2.30

interSp (Inter-Equation Spacing)

§22.1.2.48

intLim (Integral Limit Locations)

§22.1.2.49

intraSp (Intra-Equation Spacing)

§22.1.2.50

lMargin (Left Margin)

§22.1.2.59

mathFont (Math Font)

§22.1.2.61

naryLim (n-ary Limit Location)

§22.1.2.71

postSp (Post-Paragraph Spacing)

§22.1.2.85

preSp (Pre-Paragraph Spacing)

§22.1.2.86

rMargin (Right Margin)

§22.1.2.90

smallFrac (Small Fraction)

§22.1.2.98

wrapIndent (Wrap Indent)

§22.1.2.120

wrapRight (Wrap Right)

§22.1.2.121

[Note: The W3C XML Schema definition of this element’s content model (CT_MathPr) 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

MathProperties Members

DocumentFormat.OpenXml.Math Namespace