I'm using the example for the radfontdropdownlist control to attempt to set the font for the radsyntaxeditor. So far, I haven't had any luck changing it.
Here is an example:
I attempted to set editor.SyntaxEditorElement.Font = font as well, but while that doesn't blow up, it doesn't seem to change anything either.
Here's the full code for this event:
Private Sub fontDropdown_SelectedFontChanged(sender As Object, e As EventArgs) Handles fontDropdown.SelectedFontChanged
Dim editor As RadSyntaxEditor = GetActiveEditor()
If IsNothing(editor) Then Exit Sub
Dim ff As FontFamily = New FontFamily(fontDropdown.SelectedFont)
If ff.IsStyleAvailable(FontStyle.Regular) Then
Dim font As Font = New Font(ff.Name, 10, FontStyle.Regular)
editor.SyntaxEditorElement.EditorFontFamily = font.FontFamily
Else
For Each style As FontStyle In [Enum].GetValues(GetType(FontStyle))
If ff.IsStyleAvailable(style) Then
Dim font As Font = New Font(ff.Name, 10, style)
editor.Font = font
Exit For
End If
Next
End If
End Sub