0

当我使用:

Me.RichTextBox.SelectionFont = New Font(Me.RichTextBox.SelectionFont, FontStyle.Italic)

所选文本变为斜体,但是当我使用

lines(i - 5) = Me.Auto_Time.Text

Me.RichTextBox.Lines = lines

它保存了文本,Me.Auto_Time但我从richtextbox中丢失了所有斜体?

4

1 回答 1

0

You need to pass the .text and then pass .rtf for formatting:

Me.RichTextBox.Lines = Lines
Me.RichTextBox.Rtf = Me.Auto_Time.Rtf
于 2013-07-04T11:11:18.720 回答