【发布时间】:2012-12-29 20:22:10
【问题描述】:
我有textbox textbox1 我想更改文本颜色,但在所有文本的一部分。例如从 /* 到 */ 就像 Visual Studio 中的 cmets?
我该怎么做?
【问题讨论】:
-
Wpf TextBox 不是 RichTextBox
-
@Andrii - 使用 Ofiris 提供的链接 - 这应该适合你。
-
这是一个带有 Fontdialog 和 Colordialog 的示例。 [stackoverflow.com/a/32036417/5230895][1][1]:stackoverflow.com/a/32036417/5230895