Description
Returns or sets a value indicating how the human readable text is aligned.
Syntax
HRESULT get_TexAlignment(LONG* pVal); HRESULT put_TexAlignment(LONG val);
Remarks
This property controls how the text in the human readable portion is aligned. Valid alignment choices are:
Table 8.9. TexAlignment options
| Constant | Value | Description |
|---|---|---|
| mbxAlignLeft | 0 | Left alignment (default). Align the text with left edge of the comment box. |
| mbxAlignRight | 1 | Right alignment. Align the text with the right edge of the comment box. |
| mbxAlignCenter | 2 | Center alignment. Align the text with the center of the comment box |
| mbxAlignJustify | 3 | Justify alignment. Align the text to both edge of the comment box. |
Because of the unique character arrangement in UPC/EAN symbologies, this property does not apply on those symbologies: UPC-A, UPC-E, EAN-13 and EAN-8.
The barcodes below illustrate the effects of TexAlignment:

Note
When our first Barcode component product was released, the property was misspelled as TexAlignment instead of the correct spelling TextAlignment. For compatibility reasons we keep using the misspelled word as the property name. Check the spelling when you find that your application did not achieve the desired result.