Back to Devexpress

GridColumn.VerticalContentAlignment Property

maui-devexpress-dot-maui-dot-datagrid-dot-gridcolumn-02f3a9bf.md

latest1.5 KB
Original Source

GridColumn.VerticalContentAlignment Property

Gets or sets the vertical alignment of the column’s content. This is a bindable property.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.dll

NuGet Package : DevExpress.Maui.DataGrid

Declaration

csharp
public TextAlignment VerticalContentAlignment { get; set; }

Property Value

TypeDescription
TextAlignment

The content’s vertical alignment.

|

Remarks

Follow the steps below to align a cell’s content to the top/bottom border:

  1. Set the VerticalContentAlignment to Start / End .
  2. Specify the Padding property value to reduce paddings inside cells.

To specify the horizontal alignment of the column’s content, use the GridColumn.HorizontalContentAlignment property.

See Also

GridColumn Class

GridColumn Members

DevExpress.Maui.DataGrid Namespace