I would like to toggle the bold style of a selected text in a RichEdit control.
(XSharp Cahors version 2.19.0.2)
Code: Select all
METHOD ToggleBold() AS VOID
LOCAL fnt AS Font
fnt := SELF:Font()
fnt:Bold := .not. fnt:Bold
SELF:Font(fnt)
RETURN
Code: Select all
fnt := SELF:FONT()
Code: Select all
SELF:Font(fnt)
My question is: How is it possible to change the font of the selection only?