views:

290

answers:

1

I have looked around, but I have been unable to figure this out, some languages are read and written from right to left, instead of left to right. It seems like a no-brainer to be able to get the text direction from the CultureInfo object somehow, but I have not seen it anywhere. Am I missing something?

+6  A: 
CultureInfo.TextInfo.IsRightToLeft

To Find this, I looked at the properties of CultureInfo. One named "TextInfo" seemed likely to have text properties in it. I then looked at the properties of the TextInfo class and found IsRightToLeft.

Total time, about 45 seconds.

John Saunders
Thanks John. I was inspecting the CultureInfo object, but I overlooked this.
Chris Mullins