Alignment (Property)

Applies To:

Column object, Shape object, EmbeddedBrowser object, HyperLink object

Description:

Returns or sets the horizontal alignment of text in columns or shapes.

Action:

Read-write

Constants:

The BqHorizontalAlignment constant group consists of these values:

Example:

This example shows how to change the horizontal alignment of column text:

var MyResults=ActiveDocument.Sections["SalesResults"]
var ColCount = MyResults.Columns.Count
for (j = 1 ; j <= ColCount ; j++)
     if (MyResults.Columns[j].DataType == bqDataTypeString)
         MyResults.Columns[j].Alignment = bqAlignLeft
     else
          MyResults.Columns[j].Alignment = bqAlignRight