Document.OMathRightMargin Property (2007 System)

Gets or sets a value that represents the right margin for equations.

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

Syntax

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

value = instance.OMathRightMargin

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

Property Value

Type: System.Single
A value that specifies the right margin for equations.

Examples

The following code example causes the equations in the document to be right-justified and to be positioned 25 points away from the right margin of the document.

This example is for a document-level customization.

Private Sub SetDefaultRightJustification()
    Me.OMathJc = Word.WdOMathJc.wdOMathJcRight
    Me.OMathRightMargin = 25
End Sub
private void SetDefaultRightJustification()
{            
    this.OMathJc = Word.WdOMathJc.wdOMathJcRight;
    this.OMathRightMargin = 25;
}

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace