Compartir a través de


LeftMargin Class

Left Margin.When the object is serialized out as xml, its qualified name is m:lMargin.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Math.TwipsMeasureType
        DocumentFormat.OpenXml.Math.LeftMargin

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

Syntax

'Declaration
Public Class LeftMargin _
    Inherits TwipsMeasureType
'Usage
Dim instance As LeftMargin
public class LeftMargin : TwipsMeasureType

Remarks

[ISO/IEC 29500-1 1st Edition]

22.1.2.59 lMargin (Left Margin)

This element specifies the left margin for math, in twips. If this element is omitted, no left margin is used. In other words, when the element is absent, the default value of the option is 0.

When the element is present and the val attribute is absent, the default of the val attribute is 1440 (or 1 inch).

Math margins are added to the paragraph settings for margins. If the sum of lMargin and rMargin exceed the width available, lMargin should be ignored. [Example: The following XML demonstrates an lMargin setting of 1".

<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]

Parent Elements

mathPr (§22.1.2.62)

Attributes

Description

val (Value)

Specifies the value, in twips, of the parent element.

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

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

LeftMargin Members

DocumentFormat.OpenXml.Math Namespace