Printing Right-To-Left in c#

后端 未结 2 511
终归单人心
终归单人心 2020-12-15 19:35

According to msdn: http://www.microsoft.com/middleeast/msdn/arabicsupp.aspx

How GDI+ Support Arabic?

GDI+ supports Arabic text manipul

2条回答
  •  甜味超标
    2020-12-15 20:24

    Use StringFormatFlags.DirectionRightToLeft, like this:

    StringFormat format = new StringFormat(StringFormatFlags.DirectionRightToLeft);
    e.Graphics.DrawString("سلام",
                    this.Font,
                    new SolidBrush(Color.Red),
                    r1,
                    format);
    

提交回复
热议问题