Paragraph.Alignment Property 

Returns or sets a WdParagraphAlignment constant that represents the alignment for the specified paragraphs.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim paragraph1 As Paragraph

Dim returnValue As WdParagraphAlignment
returnValue = paragraph1.Alignment

Dim sampleValue As WdParagraphAlignment
paragraph1.Alignment = sampleValue

Syntax

Property Alignment() As WdParagraphAlignment
WdParagraphAlignment Alignment {get; set;}
property WdParagraphAlignment^ Alignment{
    WdParagraphAlignment^ get();
    Void set(WdParagraphAlignment^);
}
public WdParagraphAlignment get_Alignment();
public void set_Alignment(WdParagraphAlignment);
function get Alignment() : WdParagraphAlignment;
function set Alignment(WdParagraphAlignment);

Remarks

WdParagraphAlignment can be one of the following constants:

wdAlignParagraphCenter

wdAlignParagraphDistribute

wdAlignParagraphJustify

wdAlignParagraphJustifyHi

wdAlignParagraphJustifyLow

wdAlignParagraphJustifyMed

wdAlignParagraphLeft

wdAlignParagraphRight

wdAlignParagraphThaiJustify

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Paragraph Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Paragraph Members