Learn R Programming

R2wd (version 1.4)

wdGetProperty: Get a property from Word.

Description

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

Usage

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.

Value

  • The value of the lowest level of the property tree.

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.

See Also

wdSetProperty

Examples

Run this code
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"))

Run the code above in your browser using DataLab