Udostępnij za pośrednictwem


Document.OMathWrap Property (2007 System)

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.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
Public Property OMathWrap As Single
'Usage
Dim instance As Document 
Dim value As Single 

value = instance.OMathWrap

instance.OMathWrap = value
public float OMathWrap { get; set; }
public:
property float OMathWrap {
    float get ();
    void set (float value);
}
public function get OMathWrap () : float 
public function set OMathWrap (value : float)

Property Value

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

Remarks

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

Examples

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.

This example is for a document-level customization.

Private Sub SetNewLineIndentation()
    Me.OMathWrap = 20
End Sub
private void SetNewLineIndentation()
{
    this.OMathWrap = 20;            
}

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace