Rebol Programming/get-style

USAGE:

edit
GET-STYLE name /styles ss 

DESCRIPTION:

edit

Get the style by its name.

GET-STYLE is a function value.

ARGUMENTS

edit
  • name -- (Type: word)

REFINEMENTS

edit
  • /styles
    • ss -- Stylesheet (Type: any)

SOURCE CODE

edit
get-style: func [
    "Get the style by its name." 
    name [word!] 
    /styles ss "Stylesheet"
][
    if none? styles [ss: vid-styles] 
    select ss name
]