Bar

BarStaticItem.TextAlignment Property

Gets or sets text alignment within the BarStaticItem.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v21.2.dll

Declaration

[DefaultValue(StringAlignment.Near)]
public virtual StringAlignment TextAlignment { get; set; }

Property Value

Type Default Description
StringAlignment

Near

One of the StringAlignment values.

Remarks

You can use this property to align text within the borders of the BarStaticItem. Text can be aligned based on StringAlignment facilites. For information on StringAlignment refer to MSDN.

See Also