Skip to main content

XRBarCode.Alignment Property

Gets or sets the alignment of the barcode object in the control rectangle.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

[DefaultValue(TextAlignment.TopLeft)]
[SRCategory(ReportStringId.CatAppearance)]
public TextAlignment Alignment { get; set; }

Property Value

Type Default Description
TextAlignment TopLeft

A TextAlignment enumeration value that specifies how the barcode is aligned in the control.

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 Alignment property is ignored if the AutoModule property is enabled and the TargetDeviceDpi property is set. If you want the Alignment property to work correctly, disable the AutoModule property or reset the TargetDeviceDpi property.

Tip

Use the XRBarCode.TextAlignment property to specify how the text should be aligned within the barcode.

See Also