MaxDistribution Class

Maximum Distribution.When the object is serialized out as xml, its qualified name is m:maxDist.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Math.OnOffType
        DocumentFormat.OpenXml.Math.MaxDistribution

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

Syntax

'Declaration
Public Class MaxDistribution _
    Inherits OnOffType
'Usage
Dim instance As MaxDistribution
public class MaxDistribution : OnOffType

Remarks

[ISO/IEC 29500-1 1st Edition]

22.1.2.63 maxDist (Maximum Distribution)

This element specifies Array Maximum Distribution. When 1 or true, the array is spaced to the maximum width of the containing element (page, column, cell, etc.). The example image below illustrates an array expanded to fit the page, which is the containing element in this example. The maxDist option is commonly used with the objDist option. The objDist option is used to expand the distribution of mathematical text within the bounds of an array while not impacting the Array Distribution itself.

When the maxDist element is omitted, Array Maximum Distribution is off. In other words, when the element is absent, the default value of the property is 0 meaning that this property is not applied.

When the element is present and the val attribute is absent, the default of the val attribute is 1 meaning that this property is applied.

[Example: The following diagram illustrates all four possible combinations of maxDist and objDist:

DocumentFormat.OpenXml.Math.MaxDistribution-image0

XML for the fourth example shown in the above image is:

<m:oMathPara>
  <m:oMath>
    <m:eqArr>
      <m:eqArrPr>
        <m:maxDist m:val="1" /> 
        <m:objDist m:val="1" /> 
      </m:eqArrPr>
      <m:e>
        <m:r>
          <m:t>x</m:t> 
        </m:r>
        <m:r>
           <m:t>&+</m:t> 
        </m:r>
        <m:r>
          <m:t>2y&=2</m:t> 
        </m:r>
      </m:e>
      <m:e>
        <m:r>
          <m:t>x</m:t> 
        </m:r>
        <m:r>
          <m:t>&-</m:t> 
        </m:r>
        <m:r>
          <m:t>3y&=3</m:t> 
        </m:r>
      </m:e>
    </m:eqArr>
  </m:oMath>
</m:oMathPara>

end example]

Parent Elements

eqArrPr (§22.1.2.35)

Attributes

Description

val (value)

Specifies a binary value for the property defined by the parent XML element.

A value of 1 or true specifies that the property shall be explicitly applied. This is the default value for this attribute, and is implied when the parent element is present.

A value of 0 or false specifies that the property shall be explicitly turned off. This is implied when the parent element is not present.

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

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

MaxDistribution Members

DocumentFormat.OpenXml.Math Namespace