wdSetProperty: Set a property in Word.

Description Usage Arguments Details Author(s) See Also Examples

Description

This function descends down a property tree given in the parameter vector property and sets the lowest level to value.

Usage

1
wdSetProperty(property, value, object = wdapp[["Selection"]], wdapp = .R2wd)

Arguments

property

The name of a property or a vector indicating a path in a property tree.

value

The value, the lowest level in the property tree should be set to.

object

The object on which the property tree should start.

wdapp

The handle to Word.

Details

This function descends down the indicated property tree. It can also work with calls to the 'Items' method. In this case, the corresponding item numbers should be inserted in the property vector.

Author(s)

Christian Ritter

See Also

wdGetProperty

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
wdGet()
wdTitle("Title")
wdWrite("This is in normal font")
wdSetProperty(c("Font","Name"),"Garamond")
wdSetProperty(c("Font","Size"),20)
wdWrite("This is in 14pt Garamond")
wdNormal("This switches back to Normal")

## End(Not run)

R2wd documentation built on May 2, 2019, 8:54 a.m.