change-style in pasteboard%
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-pasteboardchange-stylestylesnip)
style:style<%>object or#f
snip=#f:snip%object or#fChanges the style of
styleto a specific style. Ifsnipis#f, then all currently selected snips are changed. The editor's style list must containstyle, otherwise the style is not changed. See alsoconvertinstyle-list%.
(-> voidsenda-pasteboardchange-styledeltasnip)
delta:style-delta%object or#f
snip:snip%objectChanges the style of
snipby applying a style delta. Ifsnipis#f, then all currently selected snips are changed.
(-> voidsenda-pasteboardchange-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-pasteboardchange-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%.