change-style in text%
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 a-text change-style delta start end counts-as-mod?)
delta : style-delta% object or #f
start : exact non-negative integer or 'start
end = : exact non-negative integer or 'end'end
counts-as-mod? = : boolean#t
Changes the style for a region in the editor by applying a style
delta. If start is 'start and end is
'end, then the currently selected items are
changed. Otherwise, if end is 'end, then the style
is changed from start until the end of the selection.
If counts-as-mod? is #f, then
set-modified is not called after applying the style change.
( -> void
send a-text change-style style start end counts-as-mod?)
style : style<%> object or #f
start = : exact non-negative integer or 'start'start
end = : exact non-negative integer or 'end'end
counts-as-mod? = : boolean#t
Changes the style for a region in the editor to a specific style. If
start is 'start and end is 'end, then the
currently selected items are changed. Otherwise, if end is
'end, then the style is changed from start until the
end of the selection.
If counts-as-mod? is #f, then
set-modified is not called after applying the style change.
( -> void
send a-text 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 a-text 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.