[]
Specifies the vertical alignment of text.
Use this enum with APIs such as VerticalAlignment to control how text is aligned within a cell, range, or styled object. Available values place text at the top, center, or bottom, or apply justified or distributed vertical alignment.
public enum VerticalAlignment
Public Enum VerticalAlignment
IRange range = worksheet.Range["A1:A3"];
range.Merge();
range.Value = "Notes";
range.VerticalAlignment = VerticalAlignment.Center;
| Name | Description |
|---|---|
| Bottom | Specifies that text is placed at the bottom. |
| Center | Specifies that text is vertically centered. |
| Distributed | Specifies that rotated text should wrap and be aligned to form straight edges on the left and right, including the last line. |
| Justify | Specifies that rotated text is vertically justified. |
| Top | Specifies that text is placed at the top. |