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.
(-> voidsenda-textchange-styledeltastartendcounts-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#tChanges the style for a region in the editor by applying a style delta. If
startis'startandendis'end, then the currently selected items are changed. Otherwise, ifendis'end, then the style is changed fromstartuntil the end of the selection. Ifcounts-as-mod?is#f, thenset-modifiedis not called after applying the style change.
(-> voidsenda-textchange-stylestylestartendcounts-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#tChanges the style for a region in the editor to a specific style. If
startis'startandendis'end, then the currently selected items are changed. Otherwise, ifendis'end, then the style is changed fromstartuntil the end of the selection. Ifcounts-as-mod?is#f, thenset-modifiedis not called after applying the style change. The editor's style list must containstyle, otherwise the style is not changed. See alsoconvertinstyle-list%.
(-> voidsenda-textchange-styledelta)
delta:style-delta%object or#fChanges 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 astyle-delta%instance. Otherwise,change-stylemust convert thestyle-delta%instance to thestyle<%>instance for every snip; this conversion consumes both time and (temporary) memory.
(-> voidsenda-textchange-stylestyle)
style:style<%>object or#fChanges 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 alsoconvertinstyle-list%.