Alignment Property
Alignment property as it applies to the HorizontalLineFormat object.
WdHorizontalLineAlignment
WdHorizontalLineAlignment can be one of these WdHorizontalLineAlignment constants. |
wdHorizontalLineAlignCenter |
wdHorizontalLineAlignRight |
wdHorizontalLineAlignLeft |
expression.Alignment
expression Required. An expression that returns a HorizontalLineFormat object.
Alignment property as it applies to the ListLevel object.
WdListLevelAlignment
WdListLevelAlignment can be one of these WdListLevelAlignment constants. |
wdListLevelAlignLeft |
wdListLevelAlignCenter |
wdListLevelAlignRight |
expression.Alignment
expression Required. An expression that returns a ListLevel object.
Alignment property as it applies to the PageNumber object.
WdPageNumberAlignment
WdPageNumberAlignment can be one of these WdPageNumberAlignment constants. |
wdAlignPageNumberInside |
wdAlignPageNumberOutside |
wdAlignPageNumberCenter |
wdAlignPageNumberLeft |
wdAlignPageNumberRight |
expression.Alignment
expression Required. An expression that returns a PageNumber object.
Alignment property as it applies to the Paragraph, ParagraphFormat, and Paragraphs objects.
WdParagraphAlignment
WdParagraphAlignment can be one of these WdParagraphAlignment constants. |
wdAlignParagraphCenter |
wdAlignParagraphDistribute |
wdAlignParagraphJustify |
wdAlignParagraphJustifyHi |
wdAlignParagraphJustifyLow |
wdAlignParagraphJustifyMed |
wdAlignParagraphLeft |
wdAlignParagraphRight |
wdAlignParagraphThaiJustify |
expression.Alignment
expression Required. An expression that returns a Paragraph , ParagraphFormat , or Paragraphs object.
Remarks
Some of the constants listed above may not be available to you, depending on the language support (U.S. English, for example) that you've selected or installed.
Alignment property as it applies to the Row, Rows, and TableStyle objects.
WdRowAlignment
WdRowAlignment can be one of these WdRowAlignment constants. |
wdAlignRowLeft |
wdAlignRowCenter |
wdAlignRowRight |
expression.Alignment
expression Required. An expression that returns a Row , Rows , or TableStyle object.
Alignment property as it applies to the TabStop object.
WdTabAlignment
WdTabAlignment can be one of these WdTabAlignment constants. |
wdAlignTabBar |
wdAlignTabCenter |
wdAlignTabDecimal |
wdAlignTabLeft |
wdAlignTabList |
wdAlignTabRight |
expression.Alignment
expression Required. An expression that returns a TabStop object.
Alignment property as it applies to the TextEffectFormat object.
MsoTextEffectAlignment
MsoTextEffectAlignment can be one of these MsoTextEffectAlignment constants. |
msoTextEffectAlignmentCentered |
msoTextEffectAlignmentLeft |
msoTextEffectAlignmentLetterJustify |
msoTextEffectAlignmentMixed |
msoTextEffectAlignmentRight |
msoTextEffectAlignmentStretchJustify |
msoTextEffectAlignmentWordJustify |
expression.Alignment
expression Required. An expression that returns a TextEffectFormat object.
Example
As it applies to the Paragraph object.
This example right-aligns the first paragraph in the active document.
Sub AlignParagraph()
ActiveDocument.Paragraphs(1).Alignment = _
wdAlignParagraphRight
End Sub
As it applies to the Rows object.
This example centers all the rows in the first table of the active document.
Sub CenterRows()
ActiveDocument.Tables(1).Rows _
.Alignment = wdAlignRowCenter
End Sub
As it applies to the TabStop object.
This example centers the first tab stop in the first paragraph of the active document.
Sub CenterTabStop()
ActiveDocument.Paragraphs(1).TabStops(1) _
.Alignment = wdAlignTabCenter
End Sub
Applies to | HorizontalLineFormat Object | ListLevel Object | PageNumber Object | Paragraph Object | ParagraphFormat Object | Paragraphs Collection Object | Row Object | Rows Collection Object | TableStyle Object | TabStop Object | TextEffectFormat Object
See Also | ListLevels Property | SelectCurrentAlignment Method | VerticalAlignment Property