HotXLS-dokumentation

VerticalAlignment egenskap

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

Syntax

property VerticalAlignment: XlVAlign;

Beskrivning

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

Exempel

This example centers the contents of the row two vertically

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