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.

ARGUMENTSEdit

  • name -- (Type: word)

REFINEMENTSEdit

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

SOURCE CODEEdit

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