Share via


DocumentBase.OMathLeftMargin Property

Definition

Gets or sets a value that specifies the left margin for equations.

public:
 property float OMathLeftMargin { float get(); void set(float value); };
public float OMathLeftMargin { get; set; }
member this.OMathLeftMargin : single with get, set
Public Property OMathLeftMargin As Single

Property Value

A value that specifies the left margin for equations.

Examples

The following code example causes the equations in the document to be left-justified and to be positioned 25 points away from the left margin of the document. To use this example, run it from the ThisDocument class in a document-level project.

private void SetDefaultLeftJustification()
{
    this.OMathJc = Word.WdOMathJc.wdOMathJcLeft;
    this.OMathLeftMargin = 25;
}
Private Sub SetDefaultLeftJustification()
    Me.OMathJc = Word.WdOMathJc.wdOMathJcLeft
    Me.OMathLeftMargin = 25
End Sub

Applies to