ncssTextValign Property
Returns or sets a String that represents the vertical alignment of the text in a given table.
expression.ncssTextValign
expression Required. An expression that returns one of the objects in the Applies To list.
Example
The following example sets the vertical alignment of the text in the given table to bottom. The text will now appear at the bottom of each table cell.
Sub SetTableAlign()
'Sets the text alignment of a given table
Dim objSs As IFPStyleState
Dim objDoc As FPHTMLDocument
Dim objRng As IHTMLTxtRange
Set objDoc = Application.ActiveDocument
objDoc.body.innerHTML = "<table height=107><tr><td>Cell 1</td><td>Cell 2</td></tr></table>"
Set objSs = objDoc.createStyleState
Set objRng = objDoc.body.createTextRange
objSs.gather objRng
objSs.borderCollapse = True
objSs.ncssTextValign = "bottom"
objSs.apply
End Sub