WrdStyle: Get or Set the Style in Word

Description Usage Arguments Value Author(s) See Also Examples

Description

WrdStyle can be used to get and set the style in Word for the text to be inserted. WrdStyle returns the style at the current cursor position.

Usage

1
2
WrdStyle(wrd = DescToolsOptions("lastWord"))
WrdStyle(wrd) <- value

Arguments

value

the name of the style to be used to the output. This should be defined an existing name.

wrd

the pointer to a word instance. Can be a new one, created by GetNewWrd() or an existing one, created by GetCurrWrd(). Default is the last created pointer stored in DescToolsOptions("lastWord").

Value

character, name of the style

Author(s)

Andri Signorell <andri@signorell.net>

See Also

ToWrd, WrdPlot, GetNewWrd, GetCurrWrd

Examples

1
2
3
4
5
6
7
## Not run:  # Windows-specific example

wrd <- GetNewWrd()
# the current stlye
WrdStyle(wrd)

## End(Not run)

DescTools documentation built on June 17, 2021, 5:12 p.m.