getAlignment

Returns the alignment value for undo or redo operations.

Return

The text block alignment.

Parameters

forUndo

If true, returns the old alignment (for undo); if false, returns the new alignment (for redo).