在列中对齐文本 [英] Aligning text in columns
本文介绍了在列中对齐文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我为该字符串提供了用户可选的字体,但是无法提出一种方法来对齐我正在打印的所有列. /span>
I have user-selectable font for the string, but have not been able to come up with a way to align all the columns I am printing.
我一直在尝试在这些项目上使用String.PadRight,但并不能使它们保持对齐.
有什么想法或指向正确的方向吗?
Any ideas or points for the right direction?
推荐答案
你好,
首先,我们不知道您正在使用的上下文.无论如何,当尝试在列中对齐数据时,请在报告中说您将使用类或控件的功能来进行样式设置,而不是填充数据.
First off we don't know the context you are working in. No matter, when attempting to align data in columns say in a report you would use the functionality of the class or control to do styling, not padding of data.
这篇关于在列中对齐文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文