Back to Devexpress

LookUpColumnInfo.Alignment Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-lookupcolumninfo-de053ab1.md

latest2.0 KB
Original Source

LookUpColumnInfo.Alignment Property

Gets or sets the horizontal alignment of column values within the current column.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(HorzAlignment.Default)]
[DXCategory("Appearance")]
public HorzAlignment Alignment { get; set; }
vb
<DefaultValue(HorzAlignment.Default)>
<DXCategory("Appearance")>
Public Property Alignment As HorzAlignment

Property Value

TypeDefaultDescription
HorzAlignmentDefault

A HorzAlignment value specifying the alignment of the column’s contents.

|

Available values:

NameDescription
Default

Places an object or text at the default position, which is determined by a control.

| | Near |

Places an object/text at a near position.

| | Center |

Centers an object or text within a region.

| | Far |

Places an object/text at a far position.

|

Remarks

Use the Alignment property to specify the alignment of the column’s contents. You can align the value to the left, right or center it. Refer to the HorzAlignment help topic for more information.

See Also

HorzAlignment

LookUpColumnInfo Class

LookUpColumnInfo Members

DevExpress.XtraEditors.Controls Namespace