【问题标题】:Changing the font size of a character with insert使用插入更改字符的字体大小
【发布时间】:2014-03-09 23:07:29
【问题描述】:

如何更改 Word.Insert 中“_”的字体大小?

string Word = "yellow";
 Word.Insert(2, " _ ");

【问题讨论】:

  • strings 没有字体大小?
  • @OutlawLemur 即使我把它放在标签中?

标签: c# winforms insert


【解决方案1】:

假设它在一个标签中(来自 cmets):

yourformName.YourLabel.Content = Word;
yourformName.YourLabel.Font = new Font("Arial", fontSize ,FontStyle.Bold);

Easiest way to change font and font size with visual C#

【讨论】:

    猜你喜欢
    • 2016-09-24
    • 1970-01-01
    • 1970-01-01
    • 2021-12-19
    • 1970-01-01
    • 2019-05-23
    • 2016-10-30
    • 1970-01-01
    • 2012-09-01
    相关资源
    最近更新 更多