How to change the HTML text to Right-to-Left order when rendering the text within a WebBrowser.

Posted by Java Doe on Stack Overflow See other posts from Stack Overflow or by Java Doe
Published on 2010-06-15T20:49:40Z Indexed on 2010/06/15 20:52 UTC
Read the original article Hit count: 288

Filed under:
|

hi,

I am using a WebBrowser to render some HTML text. The WebBrowser is located within a rich client. I can detect the window's orientation when the rich client is launched. How do I make the text rendered within the WebBrowser to be dispayed in RTL order.

I have tried body.setDir("rtl"), but it only aligned all the text in the WebBrowser to the right. It does not really reverse the content. For example, I have a photo that is displayed on the left and then a segment of text displayed on the right.

After calling body.setDir("rtl"), it only aligned everything to the right in the WebBrowser, but it did not move the photo to the right, and it did not move the text to the left.

Thanks a lot!

© Stack Overflow or respective owner

Related posts about webbrowser

Related posts about rtl