OEAlignment

This namespace contains constants that control how texts are aligned.

The OEAlignment namespace contains the following constants:

Default

The default text alignment style is OEAlignment_Center.

Center

The text is aligned to the center of the position passed as the first parameter of the OEImageBase.DrawText method. (This position is marked with a red dot in Figure: Example of using the ‘Center’ alignment)

../../_images/OEAlignment_Center.png

Example of using the ‘Center’ alignment

Left

The text is left adjusted to the position passed as the first parameter of the OEImageBase.DrawText method. (This position is marked with a red dot in Figure: Example of using the ‘Left’ alignment)

../../_images/OEAlignment_Left.png

Example of using the ‘Left’ alignment

Right

The text is right adjusted to the position passed as the first parameter of the OEImageBase.DrawText method. (This position is marked with a red dot in Figure: Example of using the ‘Right’ alignment)

../../_images/OEAlignment_Right.png

Example of using the ‘Right’ alignment