GetAlignment Method (Python)

Returns the alignment for this output item.

Syntax

SpssOutputItem.GetAlignment()

Returns

Table 1. Alignment types
Type Description
SpssClient.OutputItemAlignment.Left Left
SpssClient.OutputItemAlignment.Center Center
SpssClient.OutputItemAlignment.Right Right

When testing for a particular alignment type with the return value from GetAlignment, you can also use the following integer type codes: 0 (Left), 1 (Center), 2 (Right). For example:

if SpssOutputItem.GetAlignment() == 0: