04 MIDAS CLASSES/GeniiRTChunk

SetStyleMapping method
Version added: 2.21
Sets the style mapping for a set of paragraph, font and style name properties to a startstring/endstring.
Defined in
GeniiRTItem class
Syntax
Call  geniiRTItem .SetStyleMapping( stylename$, paragraph-specs$, font-specs$, start-string$, end-string$ )
Parameters
style-name$
String.   The style-name$, if it is set, refers to the Notes style which controls the paragraph (and sometimes the font) settings.  This may be Headline, Bullet, Basic or another user-created style. If the style-name$ is filled in, and the paragraph-specs$ and font-specs$ are blank, this mapping will apply whereever the Notes style applies.
paragraph-specs$
String.   A string which holds the paragraph settings that should be set.   Any paragraph settings that are not set explicitly will be left as they are or, if this is a new paragraph before any others, will be left at the default values for a paragraph.  Note that in certain circumstances, such as inside a table cell, certain settings are fixed and may not be changed, such as the right and left margin.  If these are specified for a table, they will be ignored.
font-specs$
String.   Optional.  If specified and not a null string, only paragraphs which match these settings exactly will be changed to the specifications above.  For instance, if the  paragraph-specs$ paramter above is set to change the margins, and this parameter is set to " Justify=Left", only paragraphs which have the left justification will have their margins set, even if these are intermingled with other paragraphs within the chunk.

To see all the choices for paragraph settings, see the Help topic  Working with paragraphs .

Example