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

XRBarCode.TextAlignment Property

Gets or sets the barcode’s text alignment.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

[DefaultValue(TextAlignment.BottomLeft)]
public override TextAlignment TextAlignment { get; set; }

Property Value

Type Default Description
TextAlignment **BottomLeft**

A TextAlignment enumeration value that specifies how the text is aligned within the barcode.

Available values:

Show 12 items
Name Description
TopLeft

The text is vertically aligned at the top, and horizontally aligned on the left.

TopCenter

The text is vertically aligned at the top, and horizontally aligned at the center.

TopRight

The text is vertically aligned at the top, and horizontally aligned on the right.

MiddleLeft

The text is vertically aligned in the middle, and horizontally aligned on the left.

MiddleCenter

The text is vertically aligned in the middle, and horizontally aligned at the center.

MiddleRight

The text is vertically aligned in the middle, and horizontally aligned on the right.

BottomLeft

The text is vertically aligned at the bottom, and horizontally aligned on the left.

BottomCenter

The text is vertically aligned at the bottom, and horizontally aligned at the center.

BottomRight

The text is vertically aligned at the bottom, and horizontally aligned on the right.

TopJustify

The text is vertically aligned at the top, and horizontally justified.

This mode is ignored in Silverlight applications.

MiddleJustify

The text is vertically aligned in the middle, and horizontally justified.

This mode is ignored in Silverlight applications.

BottomJustify

The text is vertically aligned at the bottom, and horizontally justified.

This mode is ignored in Silverlight applications.

Remarks

The TextAlignment property specifies the control’s XRControl.Text alignment within the barcode, while the text font is specified by the XRControl.Font property. Note that the TextAlignment property is overridden in the XRBarCode class, to change its default value.

If the TextAlignment property’s value is not set for the current bar code control, its value is obtained from its parent, or a parent of its parent and so on. For more information on this concept, please refer to Appearance Properties.

See Also