Sets the horizontal text alignment.

<void> ParagraphFormat.setAlignment(<HorizontalAlignment> alignment, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
alignment The horizontal text alignment.
callback Optional. Is called when the operation completed.
errorCallback Optional. Is called when the operation failed with an error.