Udostępnij za pośrednictwem


Document.JustificationMode Property (2007 System)

Gets or sets the character spacing adjustment for the document.

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

Syntax

'Declaration
Public Property JustificationMode As WdJustificationMode
'Usage
Dim instance As Document 
Dim value As WdJustificationMode 

value = instance.JustificationMode

instance.JustificationMode = value
public WdJustificationMode JustificationMode { get; set; }
public:
property WdJustificationMode JustificationMode {
    WdJustificationMode get ();
    void set (WdJustificationMode value);
}
public function get JustificationMode () : WdJustificationMode 
public function set JustificationMode (value : WdJustificationMode)

Property Value

Type: WdJustificationMode
One of the WdJustificationMode values.

Examples

The following code example sets the justification mode of the document to wdJustificationModeCompress.

This example is for a document-level customization.

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

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace