ReferenceAPI
Comments
Comment threads on slides and objects.
Comment threads on slides and objects. The same text agents read through help().
comment.at
Section titled “comment.at”at: { x: number; y: number } | undefinedMarker position in px, for comments on the slide.
comment.author
Section titled “comment.author”author: CommentAuthorWho started the thread.
comment.created
Section titled “comment.created”created: stringWhen the thread was started (ISO 8601).
comment.id
Section titled “comment.id”id: stringAgent-facing anchor, e.g. th_7Q2M4K9A.
comment.reopen
Section titled “comment.reopen”reopen(): thisOpens a resolved thread again.
comment.reply
Section titled “comment.reply”reply(text: string, options: { author?: string } = {}): thisAdds a reply: comment.reply("Fixed in v2", { author: "Lin Wei" }).
comment.reply("Fixed in v2", { author: "Lin Wei" })comment.resolve
Section titled “comment.resolve”resolve(): thisMarks the thread resolved (PowerPoint hides it unless resolved threads are shown).
comment.resolved
Section titled “comment.resolved”resolved: booleanWhether the thread is resolved.
comment.target
Section titled “comment.target”target: { id: string; creationId: string } | undefinedThe object the thread is on ({ id, creationId }); undefined for the slide itself.
comment.text
Section titled “comment.text”text: stringThe comment text.
comment.thread
Section titled “comment.thread”thread: ReadonlyArray<{ author: string; text: string; created: string }>The replies, oldest first.
author.input
Section titled “author.input”input: Readonly<CommentAuthorInput>Name, initials and account, as given to deck.comments.setAuthor().
author.name
Section titled “author.name”name: stringThe author’s name, as shown in PowerPoint’s comments pane.