In layouts you can specify the intended text direction for a format, and in themes you can define the direction for individual elements. For example, you might want to define a block of text in Arabic, but display some words in the block in a Latin font.
In layouts you can specify the intended text direction for a format, and in themes you can define the direction for individual elements. For example, you might want to define a block of text in Arabic, but display some words in the block in a Latin font.
In the format for a layout, you use the Horizontal alignment attribute with the direction property to show the intended alignment of text. The 'Start' and 'End' values indicate edge alignment.
This has the effect of allowing MCS to determine alignment at runtime, depending on the direction of the theme. If you use 'Right' or 'Left' with the direction property, it fixes the alignment applied to this format.
In the theme policy, you can use the position property direction on any text element that should flow in a direction that differs from the layout specification.