Share via


DocumentBase.JustificationMode Property

Gets or sets the character spacing adjustment for the document.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntax

'Declaration
Public Property JustificationMode As WdJustificationMode
public WdJustificationMode JustificationMode { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.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 Sub DocumentJustificationMode()
    Me.JustificationMode = Microsoft.Office.Interop.Word.WdJustificationMode. _
        wdJustificationModeCompress
End Sub
private void DocumentJustificationMode()
{
    this.JustificationMode = Microsoft.Office.
        Interop.Word.WdJustificationMode.wdJustificationModeCompress;
}       

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace