[]
Specifies the position of a cell label within a range.
Use this enum with Alignment to place a cell label at the top or bottom of the cell area, aligned to the left, center, or right.
public enum LabelAlignment
Public Enum LabelAlignment
IRange range = worksheet.Range["A1"];
range.CellPadding = new CellPadding(10, 0, 0, 0);
range.Watermark = "Student Name";
range.LabelOptions.Font.Size = 7;
range.LabelOptions.Alignment = LabelAlignment.topCenter;
| Name | Description |
|---|---|
| bottomCenter | Indicates that the cell label position is bottom-center. |
| bottomLeft | Indicates that the cell label position is bottom-left. |
| bottomRight | Indicates that the cell label position is bottom-right. |
| topCenter | Indicates that the cell label position is top-center. |
| topLeft | Indicates that the cell label position is top-left. |
| topRight | Indicates that the cell label position is top-right. |