S
Sakharam Phapale
Hi All,
I am new in C#.
Please tell me, how to convert following statements.
(Change font style to Bold and vice-versa)
Dim fOld As Font = myRichTextBox.SelectionFont
Dim fStyle As FontStyle = fOld.Style + (IIf(fOld.Bold, FontStyle.Bold * -1,
FontStyle.Bold))
myRichTextBox.SelectionFont = New Font(fOld.FontFamily, fOld.Size, fStyle)
Thanks and Regards,
Sakharam Phapale
I am new in C#.
Please tell me, how to convert following statements.
(Change font style to Bold and vice-versa)
Dim fOld As Font = myRichTextBox.SelectionFont
Dim fStyle As FontStyle = fOld.Style + (IIf(fOld.Bold, FontStyle.Bold * -1,
FontStyle.Bold))
myRichTextBox.SelectionFont = New Font(fOld.FontFamily, fOld.Size, fStyle)
Thanks and Regards,
Sakharam Phapale