MathFont Class
Math Font.When the object is serialized out as xml, its qualified name is m:mathFont.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Math.MathFont
Namespace: DocumentFormat.OpenXml.Math
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaración
Public Class MathFont _
Inherits OpenXmlLeafElement
'Uso
Dim instance As MathFont
public class MathFont : OpenXmlLeafElement
Remarks
[ISO/IEC 29500-1 1ª edición]
22.1.2.61 mathFont (Math Font)
This element specifies the default math font to be used in the document. If this element is omitted, font substitution (§17.8.2) should be used to determine the most appropriate font for use throughout the document. [Example: The XML containing this property is:
<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="1440"/>
<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>
end example]
[Example:
Given the following equation:
and the following XML:
<m:mathFont m:val="Cambria Math"/>
Because the document option for Math font is set to the mathematically enabled font Cambria Math, Math is formatted with that font.
end example]
Parent Elements |
---|
mathPr (§22.1.2.62) |
Attributes |
Description |
---|---|
val (value) |
Specifies the default math font to be used in the document. The possible values for this attribute are defined by the ST_String simple type (§22.9.2.13). |
[Note: The W3C XML Schema definition of this element's content model (CT_String) is located in §A.6.1. end note]
© ISO/IEC29500: 2008. Los extractos anteriores han sido traducidos del inglés al español por Microsoft (o algunos de sus agentes) e ISO no asume ningún tipo de responsabilidad por dichas traducciones.
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.