Partager via


Style.VerticalAlignment Property

Returns or sets the vertical alignment of the specified object.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property VerticalAlignment As XlVAlign
    Get
    Set
'Usage
Dim instance As Style
Dim value As XlVAlign

value = instance.VerticalAlignment

instance.VerticalAlignment = value
XlVAlign VerticalAlignment { get; set; }

Property Value

Type: Microsoft.Office.Interop.Excel.XlVAlign

Remarks

XlVAlign can be one of the following XlVAlign constants:

xlVAlignCenter

xlVAlignJustify

xlVAlignBottom

xlVAlignDistributed

xlVAlignTop

Some of these constants may not be available to you, depending on the language support (U.S. English, for example) that you've selected or installed.

See Also

Reference

Style Interface

Style Members

Microsoft.Office.Interop.Excel Namespace