VerticalAlignment (Property)

Applies To:

CellFormat object, Shape object, EmbeddedBrowser object, HyperLink object,

Description:

Returns or sets the vertical alignment of the text in a shape object. This property corresponds to the features on the Alignment Properties dialog box.

Action:

Read-write, BqVerticalAlignment constant

Constants:

The BqVerticalAlignment constant group consists of these values:

Example:

This example changes a text label to eight points, bold, italic and vertically aligns text at the top.

var MyLabel = ActiveDocument.Sections["Dashboard"].Shapes["TextLabel"]
MyLabel.Font.Size = 8
MyLabel.Font.Style = bqFontStyleBoldItalic
MyLabel.VerticalAlignment=bqAlignTop