更新时间:2023-12-05 22:10:16
文本框是错误的方式:如果没有别的,它没有单独文本格式,所以任何下划线都必须应用于整个文本,你根本不能将它应用到它的一部分。
看看RichTextBox而不是 - 那个具有单独的文本格式,因此至少可以为新条目加下划线。
A text box is the wrong way: if nothing else, it has no "individual text" formatting, so any underlining has to apply to the whole text, you can't apply it to a portion of it at all.
Have a look at a RichTextBox instead - that has individual text formatting, so underlining the new entry is at least possible.