Document.OMathJc Property (2007 System)
Gets or sets a value that indicates the default justification—left, right, centered, or centered as a group—of a group of 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 OMathJc As WdOMathJc
'Usage
Dim instance As Document
Dim value As WdOMathJc
value = instance.OMathJc
instance.OMathJc = value
public WdOMathJc OMathJc { get; set; }
public:
property WdOMathJc OMathJc {
WdOMathJc get ();
void set (WdOMathJc value);
}
public function get OMathJc () : WdOMathJc
public function set OMathJc (value : WdOMathJc)
Property Value
Type: WdOMathJc
One of the WdOMathJc values.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.