Class GridHorizontalAlignment
Defines the constants that specifies the horizontal alignment of contents in a cell.
Inheritance
System.Object
GridHorizontalAlignment
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public sealed class GridHorizontalAlignment : Enum
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
Center
Specifies that the contents of a cell are aligned with the center.
Declaration
public const GridHorizontalAlignment Center
Field Value
| Type |
|---|
| GridHorizontalAlignment |
Left
Specifies that the contents of a cell are aligned with the left.
Declaration
public const GridHorizontalAlignment Left
Field Value
| Type |
|---|
| GridHorizontalAlignment |
Right
Specifies that the contents of a cell are aligned with the right.
Declaration
public const GridHorizontalAlignment Right
Field Value
| Type |
|---|
| GridHorizontalAlignment |