Expand|Select|Wrap|Line Numbers
- If rtfText.SelectedText.Length > 0 Then
- rtfText.SelectionFont = New Font(rtfText.SelectionFont, FontStyle.Bold)
- End If
But then the user selects the Same text and with the following code placed into a button called ITALIC it removes the bold attribute and replaces it with italics.
Expand|Select|Wrap|Line Numbers
- If rtfText.SelectedText.Length > 0 Then
- rtfText.SelectionFont = New Font(rtfText.SelectionFont, FontStyle.Italic)
- End If
Somehow I need to add the italic attribute to the selected text, not simply replace all attributes with italic.