2

Is there a way to have the text in a StyledStringElement be RTL so that Arabic and Farsi and Hebrew can render correctly?

I create an StyledStringElement:

var eBahai = new StyledStringElement ("بهائی");

When rendered it is left aligned, not right aligned.

enter image description here

j0k
  • 22,600
  • 28
  • 79
  • 90
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
  • I'm not sure if I understand correctly (I'm not used to RTL). It this specific to `StyledStringElement` or does other elements, like `StringElement`, behave in the same way ? (my own test seems to indicate this). Also could you edit your question to include an example (code and pictures of what's expected and what's being showed) ? thanks! – poupou Jan 20 '12 at 18:51

1 Answers1

1
StyledStringElement elm = new StyledStringElement("your caption");
elm.Alignment = UITextAlignment.Right;

if I understood you right, that's should work for you

Janub
  • 1,594
  • 14
  • 26