如何设置行间距Graphics.DrawString [英] How to set line spacing Graphics.DrawString

查看:1957
本文介绍了如何设置行间距Graphics.DrawString的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我到达输出一个retangle里面多行字符串,但还没有找到一种方式来缩小或放大行间距。
如何做到这一点?

I arrive to output a string on multiple lines inside a retangle but haven't find a way to reduce or enlarge the line spacing. How to do that?

推荐答案

这个MSDN 应该可以帮助您。行间距是您正在使用的字体的结果。您可能需要打破,如果你需要自定义行距的命令的DrawString为多个电话。

This MSDN should help you. Line spacing is a result of the Font you are using. You may need to break your DrawString commands up into multiple calls if you need custom line spacing.

这篇关于如何设置行间距Graphics.DrawString的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆