Syncfusion.Grid.Windows
Example 


VerticalAlignment Property (GridStyleInfo)

Gets or sets vertical alignment of text in the cell.
Syntax
'Declaration
 
<DescriptionAttribute("Specifies vertical alignment of text in the cell.")>
<SRCategoryAttribute("Appearance")>
<NotifyParentPropertyAttribute(True)>
<BrowsableAttribute(True)>
Public Property VerticalAlignment As GridVerticalAlignment
'Usage
 
Dim instance As GridStyleInfo
Dim value As GridVerticalAlignment
 
instance.VerticalAlignment = value
 
value = instance.VerticalAlignment
[Description("Specifies vertical alignment of text in the cell.")]
[SRCategory("Appearance")]
[NotifyParentProperty(true)]
[Browsable(true)]
public GridVerticalAlignment VerticalAlignment {get; set;}
Remarks

The default value for the VerticalAlignment property is GridVerticalAlignment.Top.

The property affects the behavior or appearance of the following cell types:

Example
This example shows how to specify the vertical alignment of the text in the cell.
//Set the vertical alignment for text in a cell.
this.gridControl1.TableStyle.VerticalAlignment = GridVerticalAlignment.Middle;
'Set the vertical alignment for text in a cell.
 Me.gridControl1.TableStyle.VerticalAlignment = GridVerticalAlignment.Middle
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.9

See Also