print( - )减去十进制值RightToLeft

时间:2015-12-07 11:50:36

标签: c#

decimal abc = -123;
StringFormat drawFormat = new StringFormat();
drawFormat.FormatFlags = StringFormatFlags.DirectionRightToLeft;

graphics.DrawString(abc.ToString(), new Font("Segoe UI", 10, FontStyle.Bold), new SolidBrush(Color.Black), 100, 100, drawFormat);

返回123- 但我想要-123

0 个答案:

没有答案
相关问题