DocumentBase.JustificationMode Property

Definition

Gets or sets the character spacing adjustment for the document.

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

Property Value

WdJustificationMode

One of the WdJustificationMode values.

Examples

The following code example sets the justification mode of the document to wdJustificationModeCompress. To use this example, run it from the ThisDocument class in a document-level project.

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

Applies to