Bar2DAlignment

<< Click to Display Table of Contents >>

Navigation:  Barcode Functions (2D) >

Bar2DAlignment

Previous pageReturn to chapter overviewNext page

[Professional Edition and above only]

Sets the horizontal and vertical alignment of the 2D-barcodes within the given rectangle.

property Bar2DAlignment [integer] VPE.Bar2DAlignment

read / write; runtime only; also supported by TVPEObject

Possible Values:

ActiveX / VCL

Value

Enum

Comment

VBAR2D_ALIGN_CENTER

0

Center

horizontally and vertically centered

VBAR2D_ALIGN_CENTER_H

0

CenterH

horizontally centered

VBAR2D_ALIGN_CENTER_V

0

CenterV

vertically centered

VBAR2D_ALIGN_LEFT

1

Left

 

VBAR2D_ALIGN_RIGHT

2

Right

 

VBAR2D_ALIGN_TOP

4

Top

 

VBAR2D_ALIGN_BOTTOM

8

Bottom

 

Default:

VBAR2D_ALIGN_CENTER

Remarks:

You combine values for horizontal and vertical alignment by adding two flags.

Example:

ActiveX / VCL:

Doc.Bar2DAlignment = VBAR2D_ALIGN_LEFT + VBAR2D_ALIGN_TOP

Will align the barcode to the top-left corner.

 

.NET:

VB: Doc.Bar2DAlignment = Bar2DAlignment.Left + Bar2DAlignment.Top

C#: Doc.Bar2DAlignment = Bar2DAlignment.Left | Bar2DAlignment.Top

Will align the barcode to the top-left corner.

 

See also:

"Barcodes (2D)" in the Programmer's Manual