replace
类: mlreportgen.ppt.ContentPlaceholder
命名空间: mlreportgen.ppt
替换内容占位符或内容
说明
替换 replacementContentObj
= replace(contentPlaceholder
,content
)ContentPlaceholder
对象的内容或者替换 ContentPlaceholder
对象。如果 content
参量是一个段落,则 replace
方法会通过使该段落成为 ContentPlaceholder
对象的子对象来替换 ContentPlaceholder
的内容。如果 content
参量是图片或表,则 replace
方法分别用 mlreportgen.ppt.Picture
或 mlreportgen.ppt.Table
对象替换 ContentPlaceholder
对象。
replace(
用多个段落替换内容占位符的内容。contentPlaceholder
,paragraphs
)
示例
输入参数
输出参量
版本历史记录
在 R2015b 中推出