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.
OptionalgetThe points a connector's end may be glued to, in a width by height frame of this
content, before the frame is placed.
Optionaloptions: ConnectionsOptionsAbsent, the four edge midpoints — top, left, bottom, right, numbered in that order, each
leaving straight out — as Excel offers on a picture, a chart, a slicer or a control. A
shape is the exception and answers its geometry's own sites (a triangle's three, a
connector's none); a group answers none, since Excel glues to a group's members and never
to the group. Must be synchronous: null means the content cannot answer yet and will call
options.onReady when it can.
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.
OptionalgetHow a movable of this content moves and sizes with the cells under it when it is added without an anchor type.
Absent, it moves and sizes with them (IAnchored.Type.TwoCell), as Excel inserts a shape or a chart. A picture moves with its cell but keeps its size.
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.Returns the cells the content names - a chart's series, a control's linked cell, a slicer's
column - or null when it names none.
Not where the movable sits: that is IMovable.getRange. The references are formulas the calculation engine holds, so they follow the cells they name through inserts, deletes, cuts, sheet renames and undo, and ContentEvents.onReferencesChange is announced when they have. A reference to deleted cells is left out. Without a running engine the references read as they were set.
The replies, oldest first.
Returns the reply with the given id, or null if there is none.
The fill and line of a note's box, or null for a threaded comment, which has no box.
A note that states neither draws Excel's default: the system tooltip background (IColor.Named.InfoBk) and a thin line in the tooltip text color. Excel takes only literal colors here; a theme color is written to a file as the color it resolves to.
'note' for a note, 'comment' for a threaded comment.
Returns a label for the kind of content, such as Chart or Picture.
The sheet the comment is on.
Returns if the model has been closed
OptionalisReturns 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.