RecordComment.Text(属性)
说明
只读
返回评论的文本
返回值
String
浏览器环境示例
javascript
async function example() {
await instance.ready();
const app = instance.Application;
const recordComment = await app.ActiveView.RecordComments.Item(1)
const count = recordComment.Count
for (let i = 1; i <= count; i++) {
const comment = await recordComment.Item(i)
console.log(await comment.Text)
}
}
脚本编辑器 示例
javascript
function main() {
const recordComment = ActiveView.RecordComments.Item(1)
const count = recordComment.Count
for (let i = 1; i <= count; i++) {
const comment = recordComment.Item(i)
console.log(comment.Text)
}
}
main()