次の方法で共有


DocumentBase.OMathJc Property

Definition

Gets or sets a value that indicates the default justification—left, right, centered, or centered as a group—of a group of equations.

public:
 property Microsoft::Office::Interop::Word::WdOMathJc OMathJc { Microsoft::Office::Interop::Word::WdOMathJc get(); void set(Microsoft::Office::Interop::Word::WdOMathJc value); };
public Microsoft.Office.Interop.Word.WdOMathJc OMathJc { get; set; }
member this.OMathJc : Microsoft.Office.Interop.Word.WdOMathJc with get, set
Public Property OMathJc As WdOMathJc

Property Value

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. To use this example, run it from the ThisDocument class in a document-level project.

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

Applies to