Back to Devexpress

BarStaticItem.TextAlignment Property

windowsforms-devexpress-dot-xtrabars-dot-barstaticitem-b37c7015.md

latest1.5 KB
Original Source

BarStaticItem.TextAlignment Property

Gets or sets text alignment within the BarStaticItem.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(StringAlignment.Near)]
public virtual StringAlignment TextAlignment { get; set; }
vb
<DefaultValue(StringAlignment.Near)>
Public Overridable Property TextAlignment As StringAlignment

Property Value

TypeDefaultDescription
StringAlignmentNear

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

BarStaticItem Class

BarStaticItem Members

DevExpress.XtraBars Namespace