Styles module - SPStylesInterface

Module used to manipulate style collections.

Constants

Styles number

To specify which styles collection shall be manipulated, use these constants:

STYLES_MAIN = 0

Style manipulation methods

These functions of SPSubInterface enable to call corresponding methods of TStyleCol in SP. Common parameter is styles_no  with the same meaning as in Style module.

get_count(styles_no)
add(styles_no)
delete(styles_no, style_id_to_delete)
get_unique_name(styles_no, base_name)
find_compatible_style(styles_no, styles_to_find, style_to_find)
purge_non_local(styles_no)
find_by_font_props(styles_no, f_name, f_b, f_i, f_u, f_s, f_charset)
find_by_font_name(styles_no, f_name)