vb将选中文字加粗怎么弄

来源:百度知道 编辑:UC知道 时间:2024/09/22 17:32:40
加粗按钮,点一下为加粗,再点一下为取消加粗
注意---是选中的文字

Private Sub Command1_Click()
'RT is RichTextBox1
If IsNull(RT.SelBold) Then '选中的文字中含有加粗和不加粗的内容
RT.SelBold = True '加粗
Else
If RT.SelBold Then
RT.SelBold = False
Else
RT.SelBold = True
End If
End If

End Sub

你的问题很模糊啊!详细点啊!