多色标签控制

发布于 2024-08-10 14:55:35 字数 148 浏览 1 评论 0原文

是否可以将 Label 设为多色?我有一个 RichTextBox,用户可以在其中输入文本并根据需要设置格式;我需要能够显示结果文本,并使用用户在 Label 控件内设置的正确样式。

有人有任何建议/建议/链接吗?

Is it at all possible to make a Label multi-colored? I have a RichTextBox that the user can type text into and format as required; I need to be able to display the resulting text, with the correct styles set by the user inside a Label control.

Anyone have any suggestions/advice/links?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

妳是的陽光 2024-08-17 14:55:35

我认为使用 RichTextBoxes 作为标签可能会更容易。使它们只读且无边界。

此链接可以帮助您使背景透明。(链接已损坏)

I think it might be easier to just use RichTextBoxes for your labels. Make them readonly and borderless.

This link may help you to make the background transparent. (Link is broken)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文