Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Sets or returns a ParagraphFormatting.Justification object that represents the text justification for a paragraph.

Signature
C#
C#
 public Justification TextJustification{ get; set; }
Signature
vb.net
vb.net
Public Property TextJustification() As Justification
Remarks

MS Word equivalent: Format menu > Paragraph... > Indents and Spacing tab > General section > Alignment:

Example
Code Block
csharp
csharp
titleC#

          //--- Return Justification
          ParagraphFormatting.Justification oJustification =
               oParagraphFormatting.TextJustification;

          //--- Set Justification to Right
          oParagraphFormatting.TextJustification =
               ParagraphFormatting.Justification.Right;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return Justification
          Dim oJustification As ParagraphFormatting.Justification = _
               oParagraphFormatting.TextJustificaiton

          '--- Set Justification
          oParagraphFormatting.TextJustification = _
               ParagraphFormatting.Justification.Right