Right-to-Left Text

Left-to-Right (Default)

This paragraph uses the default TextDirection.Ltr. Its text-align stays at the default Left, and the two naturally agree: left-to-right text that starts from the left edge.

عربي (Right-to-Left)

يولد جميع الناس أحرارًا متساوين في الكرامة والحقوق. وقد وهبوا عقلاً وضميرًا وعليهم أن يعامل بعضهم بعضاً بروح الإخاء.

The heading and paragraph above set Direction: TextDirection.Rtl, which emits dir="rtl" and direction:rtl on the rendered <h2>/<p> tags. Direction alone does not change text-align - it's still Left by default, which is why the text above starts flush against the left edge of its box even though it reads right-to-left. The next paragraph adds Alignment: TextAlignment.Right explicitly for a fully mirrored block:

هذا نص تجريبي محاذى إلى اليمين، بالإضافة إلى اتجاهه من اليمين إلى اليسار.

In a Table Cell

LanguageSample
EnglishThe quick brown fox jumps over the lazy dog.
Arabicالثعلب البني السريع يقفز فوق الكلب الكسول.

Page 1 of 1