Compartir a través de


DocumentBase.JustificationMode Property

Definition

Gets or sets the character spacing adjustment for the document.

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

Property Value

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