Partager via


DocumentBase.OMathLeftMargin Property

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

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntax

'Declaration
Public Property OMathLeftMargin As Single
public float OMathLeftMargin { get; set; }

Property Value

Type: System.Single
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 Sub SetDefaultLeftJustification()
    Me.OMathJc = Word.WdOMathJc.wdOMathJcLeft
    Me.OMathLeftMargin = 25
End Sub
private void SetDefaultLeftJustification()
{
    this.OMathJc = Word.WdOMathJc.wdOMathJcLeft;
    this.OMathLeftMargin = 25;
}

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace