REBOL Programming/get-style

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

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
]