You are here: Help Topics > Customization > Calculation > Load Styles by Name Action

Load Styles by Name Action

Event Function: LoadOneStyle

The Load Styles by Name action loads individual styles in a specified style sheet into the current document.

Using the Events tab

Under Enter Example

Run Skip Condition

If desired, enter skip conditions for the event. When the "Run Skip Condition" is evaluated to be true, the action is not performed.

File Name

Name of the style sheet file in current working directory, or full path otherwise

"c:\Program Files\Caseware\styles\style.sty"

Style Name

Name of the style to load

"Heading6-14 Centre"

Style Name

Optional name of an additional style to load

"Note2-1 Levels Bold"

Style Name

Optional name of an additional style to load

"Attention"

Style Name

Optional name of an additional style to load

"Conclusion"

Syntax (if entering it in the Equation bar)

ACTION("LoadOneStyle", expr1, expr2 <, expr3><, expr4><, expr5>)

Where

expr1 = entry under File Name

expr2 = entry under Style Name

expr3 = entry in the second Style Name field, if it exists

expr4 = entry in the third Style Name field, if it exists

expr5 = entry in the fourth Style Name field, if it exists

How the example will appear in the Equation bar

ACTION("LoadOneStyle", "c:\Program Files\Caseware\styles\regular.sty","Heading6-14 Centre","Note2-1 Levels Bold","Attention","Conclusion")

Related Topics