Forums     Knowledge Base     OfficeWriter Online     
 
 
This documentation is for
OfficeWriter v3.8.1
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > WordApplication API > ParagraphFormatting > TextJustification

TextJustification Property


C# Signature:

VB.NET Signature:


Description:

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

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

TextJustification is a read / write property.



Examples:

[csharp]
// Return Justification
ParagraphFormatting.Justification oJustification = oParagraphFormatting.TextJustification;
// Set Justification to Right
oParagraphFormatting.TextJustification(ParagraphFormatting.Justification.Right);
[vbnet]
' Return Justification
Dim oJustification As ParagraphFormatting.Justification = oParagraphFormatting.TextJustificaiton
' Set Justification
oParagraphFormatting.TextJustification(ParagraphFormatting.Justification.Right)


Getter

Signature:

public ParagraphFormatting.Justification TextJustification

Returns:

ParagraphFormatting.Justification A ParagraphFormatting.Justification object that represents the text justification for a paragraph.

Setter

Signature:

public void TextJustification ParagraphFormatting.Justification jc

Type:

ParagraphFormatting.Justification



Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.