Can we able to format BOLD and ITALIC to the same开发者_运维问答 text?
Regards, Poornima
Yes. The System.Drawing.FontStyle enumeration is a flags enumeration. To combine styles, simply use the OR operator.
Assuming you're applying the font to the selected portion of the text, it could look like:
RichTextBox1.SelectionFont = _
New System.Drawing.Font("Arial", 14, FontStyle.Bold Or FontStyle.Italic)
精彩评论