DocumentBase.OMathWrap Property

 

Gets or sets a value that specifies the placement of the second line of an equation that wraps to a new line.

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

public float OMathWrap { get; set; }

Property Value

Type: System.Single

A value that specifies the placement of the second line of an equation that wraps to a new line.

A value of -1 specifies that the continuation of the equation is right-aligned. All positive values indicate the indent from the left margin.

The following code example sets the OMathWrap property to a value that indents the new lines of an equation 20 points relative to the left margin. To use this example, run it from the ThisDocument class in a document-level project.

private void SetNewLineIndentation()
{
    this.OMathWrap = 20;            
}
Return to top
Show: