getTypeDocumentation {SWinTypeLibs} | R Documentation |
This retrieves the documentation for the specified
entry in the type library (ITypeLib
) or
ITypeInfo
object.
getTypeDocumentation(lib, which)
lib |
the ITypeLib or ITypeInfo object in
which to find the documentation element. |
which |
the index of the entry (1-based) in the type library
whose documentation is to be retrieved.
If lib is an instance of \class{ITypeInfo-class} ,
a value of 0 gives the human-readable name of the
type. Values 1, 2, ... give the names of the
methods/property accessors.
|
A character vector of length 3 giving the
DocString |
the documentation string for this element. |
Help Context |
documentation for the context of this element. |
Help File |
the name of the help file. |
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://msdn.microsoft.com/library http://www.omegahat.org/RWinTypeLibs
LoadTypeLib
getTypeInfo
getTypeLibTypes
if(file.exists("c:\\WINNT\\system32\\wmpui.dll")) { l = LoadTypeLib("c:\\WINNT\\system32\\wmpui.dll") getTypeDocumentation(l, 0) getTypeDocumentation(l, 14) m <- matrix("", length(l), 3) for(i in 1:length(l)) { m[i, ] <- getTypeDocumentation(l, i) } print(m) w = COMCreate("Word.Application", existing = TRUE) lib = LoadTypeLib(w) getTypeDocumentation(lib[["Documents"]], 0) getTypeDocumentation(lib[["Documents"]], 1) lib = NULL }