Alignment Property

To align text within Text elements, use the Report Designer alignment controls.

The Alignment property controls both the horizontal and vertical alignment of report elements in the page layout. The horizontal alignment is specified by the alignment constants H_LEFT, H_CENTER, and H_RIGHT. (See Alignments.)

alignment = StyleConstant.H_CENTER;

The vertical alignment property can be combined with the horizontal alignment property by using the bitwise OR.

alignment = StyleConstant.H_CENTER | StyleConstant.V_CENTER;

The four vertical alignment options are V_TOP, V_CENTER, V_BOTTOM, and V_BASELINE.

See Also

Appendix JS.13, StyleConstant Object, for commonly-used constant values.

Text, for more information about Text properties.

<< Visibility Property © 1996-2013 InetSoft Technology Corporation (v11.5) 3.4 Adding Viewsheet Script >>