DocumentBase.OMathLeftMargin 屬性

取得或設定表示方程式左邊界的值。

命名空間:  Microsoft.Office.Tools.Word
組件:  Microsoft.Office.Tools.Word.v4.0.Utilities (在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)

語法

'宣告
Public Property OMathLeftMargin As Single
    Get
    Set
public float OMathLeftMargin { get; set; }

屬性值

型別:System.Single
表示方程式左邊界的值。

範例

下列程式碼範例會讓文件中的方程式靠左對齊,並且置於距離文件左邊界 25 點的位置。 若要使用這個範例,請在文件層級專案中的 ThisDocument 類別執行。

Private Sub SetDefaultLeftJustification()
    Me.OMathJc = Word.WdOMathJc.wdOMathJcLeft
    Me.OMathLeftMargin = 25
End Sub
private void SetDefaultLeftJustification()
{
    this.OMathJc = Word.WdOMathJc.wdOMathJcLeft;
    this.OMathLeftMargin = 25;
}

.NET Framework 安全性

請參閱

參考

DocumentBase 類別

Microsoft.Office.Tools.Word 命名空間