change-style in editor<%>
Changes the style for items in the editor.
The style within an editor can be changed
by the
system (in response to other method calls), and such changes do not go through this method; use on-change-style in text% to
monitor style changes.
( -> void
send an-editor change-style delta)
delta : style-delta% object or #f
Changes the style of the selected items by applying a style delta.
To change a large collection of snips from one style to another style,
consider providing a style<%> instance rather than a
style-delta% instance. Otherwise,
change-style must convert the style-delta% instance to the
style<%> instance for every snip; this conversion consumes
both time and (temporary) memory.
( -> void
send an-editor change-style style)
style : style<%> object or #f
Changes the style of the selected items to a specific style.
The editor's style list must contain style, otherwise
the style is not changed. See also
convert.