DocumentBase.JustificationMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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