Docs HotXLS

VerticalAlignment-property

Renvoie or sets the vertical alignment of the specified range. Read/write XlVAlign

Syntaxe

property VerticalAlignment: XlVAlign;

Description

VerticalAlignment can be one of these XlVAlign constants
xlVAlignBottom
xlVAlignCenter
xlVAlignDistributed
xlVAlignJustify
xlVAlignTop

Exemple

This example centers the contents of the row two vertically

Workbook.Worksheets[1].Range['A2', 'A2'].EntireRow.VerticalAlignment := xlVAlignCenter;