Skip to main content
A newer version of this page is available. .

GridColumn.HorizontalContentAlignment Property

Gets or sets the horizontal alignment of the column’s content.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

Declaration

public TextAlignment HorizontalContentAlignment { get; set; }

Property Value

Type Description
Xamarin.Forms.TextAlignment

A value that specifies the horizontal alignment of the column’s content.

Remarks

The default horizontal alignment is different for different column types. For example, TextColumn and DateColumn align cell values at the start, NumberColumn - at the end, CheckBoxColumn - at the center. To change the default alignment, use the column’s HorizontalContentAlignment property.

The specified alignment is applied to both the content of data cells and the column header.

The specified HorizontalContentAlignment property value is ignored for a column by which grid data is grouped – a group value is always aligned at the start and the group summary value (if any) is aligned at the end in a group row.

To specify the vertical alignment of the column’s content, use the GridColumn.VerticalContentAlignment property.

See Also