[C#] 纯文本查看 复制代码///
/// 文字处理
///
/// 字符串
/// 开始高度
/// 行高度
/// gdp+
/// 文字格式
/// 画刷
/// 宽度
/// 返回高度
public int DrawFont(string strr, int fwith, int autoHeight, int fontHeight, Graphics theGraphics, Font theFontnormal, Brush newBrushnormal, int kuandu)
{
strr = strr.Replace(",", "@m@");
//换行变,号
strr = strr.Replace("
", ",");
string[] tag = strr.Split(new char[] { ',' });
if (tag.Count() > 0)
{
foreach (var item in tag)
{
string str = item.Replace("@m@", ",");
int thewight = Convert.ToInt16(Fontwigth(str, theFontnormal));
if (thewight > kuandu)
{
int cs = thewight / kuandu;//除数
<