DocumentBase.JustificationMode 属性

定义

获取或设置文档的字符间距调整。

public Microsoft.Office.Interop.Word.WdJustificationMode JustificationMode { get; set; }

属性值

WdJustificationMode

WdJustificationMode 值之一。

示例

下面的代码示例将文档的对齐模式设置为 wdJustificationModeCompress 。 若要使用此示例,请在 ThisDocument 文档级项目的类中运行它。

private void DocumentJustificationMode()
{
    this.JustificationMode = Microsoft.Office.
        Interop.Word.WdJustificationMode.wdJustificationModeCompress;
} 		
Private Sub DocumentJustificationMode()
    Me.JustificationMode = Microsoft.Office.Interop.Word.WdJustificationMode. _
        wdJustificationModeCompress
End Sub 

适用于