如何使用C#创建单词间距相等的文本框? [英] How to Create a textbox with an equal spacing between words using C#?
问题描述
我正在使用VS2013 C#.net来创建我的PowerPoint插件。我在这种情况下创建一个文本框(只有一个文本框),其中包含每个幻灯片和幻灯片编号的标题。
注意:我正在循环幻灯片和将结果存储在同一个字符串变量中。
例如,
生成的文本框将包含,
简介    页 1
摘要         &NBSP 2
码  &NBSP ;   3
结论   4 ....
它还在继续。
但我的问题是我应该只使用文本框而不是表格来使文本和数字之间的间距相同。
而且我无法获得上述(表格般的)间距。
任何人都可以帮我搞定吗?
谢谢提前!!!
Hi,
I am using VS2013 C#.net for creating my PowerPoint Add-in. In which I am in a situation to create a textbox(only one textbox) that contains titles of each slide and slide number.
Note: I am looping over slides and storing the results in a same string variable.
For example,
the resulting textbox will contain,
Introduction  1
Abstract   2
Code   3
Conclusion   4 ....
And it continues.
But my problem is I should use only textbox and not a table to have the same spacing between text and number.
And I am not able to get the above (table like)spacing.
Can any one please help me get it?
Thanks in Advance!!!
推荐答案
使用非比例字体,如courier new。
Use a non-proportional font, like courier new.
这篇关于如何使用C#创建单词间距相等的文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!