Enum GridHorizontalAlignment
Defines the constants that specifies the horizontal alignment of contents in a cell.
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public enum GridHorizontalAlignment
Remarks
The GridHorizontalAlignment enumeration represents the different horizontal alignment options for contents of a cell that you can specify with the HorizontalAlignment property of the GridStyleInfo class.
Examples
This example shows how to use the GridHorizontalAlignment enumerator property.
this.gridControl1.TableStyle.HorizontalAlignment = GridHorizontalAlignment.Center;
Me.gridControl1.TableStyle.HorizontalAlignment = GridHorizontalAlignment.Center
Fields
Name | Description |
---|---|
Center | Specifies that the contents of a cell are aligned with the center. |
Left | Specifies that the contents of a cell are aligned with the left. |
Right | Specifies that the contents of a cell are aligned with the right. |