ReadonlyisFor runtime type checking.
ReadonlyisFor runtime type checking.
OptionalacceptThe flip this content takes when asked to mirror as flip states.
Defined by content that can be mirrored, such as a shape or a picture; absent, the content cannot: a frame dragged through its opposite edge is moved there but not mirrored, as Excel does with a chart. Must be pure, as acceptRotation is. A connector may accept each axis on its own.
OptionalacceptThe rotation this content takes when asked to turn by degrees, clockwise.
Add Listeners.
Optionaloptions: IListener.OptionsAdds a reply.
The reply's text.
Optionaloptions: AddReplyOptions
The person replying, when not the current one.
Similar to delete but cleans resources and can't be undone.
Deletes the comment: its replies with it, or a note's box.
Optionaloptions: ITransaction.OperationOptionsOptionalgetThe person who wrote the comment, or null if the workbook does not know them.
The content as plain text.
A note's formatting runs are joined; see getRichContent for them.
When the comment was written, or null for a note, which Excel does not date.
Returns the alternative text used by assistive technologies, or null if none has been set.
The comment's identifier, unique within the workbook.
The box a note is shown in, or null for a threaded comment, which has none.
The box is an ordinary movable: it is selected, moved and resized like a picture's, and is
among the sheet's getMovables(). Its content is this comment.
isHidden() is true for a box that appears only while its cell is
pointed at, which is how a note starts and which a view decides. setHidden(false) keeps
it on the sheet.A reply converts a note to a threaded comment, and its box goes with it.
OptionalgetThe name of the anchor or null if it has none.
The cell the comment is on.
Optionaloptions: ICellRange.GetRangeOptionsInvalid, never null, once the cell has been deleted — see IAnchored.getRanges.
Returns the ranges this object is anchored to, in authored order.
Optionaloptions: ICellRange.GetRangeOptionsnull. An item whose last range was removed by a row/column delete returns an
invalid ranges — ask ICellRanges.isInvalid, the same contract as
ITable.getDataRange.getRange() for it, but data validations, conditional formats and protected ranges are
authored as several, and any single range can become several when a delete splits it.The replies, oldest first.
Returns the reply with the given id, or null if there is none.
The sheet the comment is on.
'note' for a note, 'comment' for a threaded comment.
Returns a label for the kind of content, such as Chart or Picture.
Returns if the model has been closed
Returns if the model has been deleted
Whether this is a note rather than a threaded comment.
If the anchor is unable to be modified.
Replaces the content.
Plain text, or formatting runs for a note.
Optionaloptions: ITransaction.OperationOptionsSet the alternative text used by assistive technologies.
OptionalsetSet the name.
The name of the content.
Marks the thread resolved, or reopens it.
Optionaloptions: ITransaction.OperationOptionsSet multiple properties at once.
Optionaloptions: ITransaction.OperationOptions
A comment on a cell: the root of a thread, with its replies, or a note.
Remarks
Follows Office Scripts'
Comment: one per cell, the thread's root, resolved as a whole, with replies (IComment.IReply) that borrow its cell. A note — Excel's older yellow box — is a comment that says so: it has no replies, no resolved state and no creation date, and its content may carry formatting runs where a thread's is plain text.Anchored to its cell, so it follows a row or column insert or delete and is deleted when its cell is.
A note is also the content of a movable: the box it is shown in.