Syncfusion.Grid.Windows
Example Example 


Syncfusion.Windows.Forms.Grid Namespace : GridHorizontalAlignment Enumeration

GridHorizontalAlignment Enumeration

Defines the constants that specifies the horizontal alignment of contents in a cell.
Syntax
'Declaration
 
Public Enum GridHorizontalAlignment 
   Inherits System.Enum
'Usage
 
Dim instance As GridHorizontalAlignment
public enum GridHorizontalAlignment : System.Enum 
Members
MemberDescription
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.
Remarks
The GridHorizontalAlignment enumeration represents the different horizontal alignment options for contents of a cell that you can specify with the GridStyleInfo.HorizontalAlignment property of the GridStyleInfo class.
Example
This example shows how to use the GridHorizontalAlignment enumerator property.
this.gridControl1.TableStyle.HorizontalAlignment = GridHorizontalAlignment.Center;
Me.gridControl1.TableStyle.HorizontalAlignment = GridHorizontalAlignment.Center
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment

AssemblyVersion

Syncfusion.Grid.Windows: 17.1460.0.47

See Also