activePDF Toolkit 2011 API Reference
CommentAlignment
Technical Reference > Barcode Object > Barcode Properties > CommentAlignment

Glossary Item Box

Description:

DEPRECATED. Use PrintText instead.

Sets the text alignment for the comment.

Syntax: object.CommentAlignment = value
Arguments: Argument Value Type Description & Settings
object N/A Set to an instance of the object.
Value Long 0 = Left alignment (default). Align the text with left edge of the comment box.

1 = Right alignment. Align the text with the right edge of the comment box.

2 = Center alignment. Align the text with the center of the comment box.

3 = Justify alignment. Align the text to both edges of the comment box.
Remarks: The comment margins are calculated different depending on the alignment and current design mode. In BDM, Toolkit measures the horizontal margins from the edge of the comment to the edge of the generated barcode.

In LDM, Toolkit measures the horizontal margins from the edge of the comment to the label boundary. Vertical comment margins are not affected.

For additional details, refer to the CommentMarginBottom, CommentMarginLeft, CommentMarginRight, CommentMarginTop properties.