wdGetProperty: Get a property from Word.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

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

Arguments

property

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

object

The object on which the property tree should start.

wdapp

The handle to Word.

Details

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

Value

The value of the lowest level of the property tree.

Author(s)

Christian Ritter

See Also

wdSetProperty

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
wdGet()
wdTitle("Title",paragraph=FALSE)
wdGetProperty(c("Font","Name"))
wdGetProperty(c("Font","Size"))
wdParagraph()
wdWrite("This is in normal font")
wdGetProperty(c("Font","Name"))
wdGetProperty(c("Font","Size"))

## End(Not run)

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