Make portion of a Label's Text to be styled bold

前端 未结 12 635
离开以前
离开以前 2020-11-30 12:12

Is there any way to make a part of a label.text to be bold?

label.text = \"asd\" + string;

Would like the string

12条回答
  •  余生分开走
    2020-11-30 12:50

    In ASP.NET you could do:

    label.Text = string.Format("asd {0}", string);
    

    But like everyone else says, depends on what you're using.

提交回复
热议问题