3.2.4 Alignment Property

To align text within Text elements, use the Style Studio align­ment 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

SI.41, StyleReport Object, for commonly-used constant values.

Text and TextBox, for more information about Text properties.

<< 3.2.3 Visibility Property © 1996-2013 InetSoft Technology Corporation (v11.5) 3.2.5 fullName Property >>