Enum TextAlign
Specifies the horizontal text alignment to apply within spreadsheet cells.
Namespace: Syncfusion.Blazor.Spreadsheet
Assembly: Syncfusion.Blazor.Spreadsheet.dll
Syntax
public enum TextAlign
Remarks
This enumeration is used with TextAlign to determine how text is positioned horizontally within cells. Text alignment provides visual organization and improves readability of cell content.
- Left - Aligns text to the left edge of the cell. This is the default alignment for text values.
- Center - Aligns text to the horizontal center of the cell.
- Right - Aligns text to the right edge of the cell. Commonly used for numeric data.
Horizontal alignment works independently of vertical alignment, which can be controlled through VerticalAlign.
Fields
| Name | Description |
|---|---|
| Center | Aligns text to the horizontal center of the cell. |
| Left | Aligns text to the left edge of the cell. |
| Right | Aligns text to the right edge of the cell. |