RevisionCellComment

RevisionCellComment class

Represents a revision record of a cell comment change.

class RevisionCellComment extends Revision;

Constructors

NameDescription
constructor(Revision)Constructs from a parent object convertible to this.

Properties

PropertyTypeDescription
rownumberReadonly. Gets the row index of the which contains a comment.
columnnumberReadonly. Gets the column index of the which contains a comment.
cellNamestringGets the name of the cell.
actionTypeRevisionActionTypeReadonly. Gets the action type of the revision.
isOldCommentbooleanReadonly. Indicates whether it’s an old comment.
oldLengthnumberReadonly. Gets Length of the comment text added in this revision.
newLengthnumberReadonly. Gets Length of the comment before this revision was made.
worksheetWorksheetReadonly. Gets the worksheet.
idnumberReadonly. Gets the number of this revision.

Methods

MethodDescription
getType()Gets the type of revision.

constructor(Revision)

Constructs from a parent object convertible to this.

constructor(obj: Revision);

Parameters:

ParameterTypeDescription
objRevisionThe parent object.

row

Readonly. Gets the row index of the which contains a comment.

row : number;

column

Readonly. Gets the column index of the which contains a comment.

column : number;

cellName

Gets the name of the cell.

cellName : string;

actionType

Readonly. Gets the action type of the revision.

actionType : RevisionActionType;

isOldComment

Readonly. Indicates whether it’s an old comment.

isOldComment : boolean;

oldLength

Readonly. Gets Length of the comment text added in this revision.

oldLength : number;

newLength

Readonly. Gets Length of the comment before this revision was made.

newLength : number;

worksheet

Readonly. Gets the worksheet.

worksheet : Worksheet;

id

Readonly. Gets the number of this revision.

id : number;

Remarks

Zero means this revision does not contains id.

getType()

Gets the type of revision.

getType() : RevisionType;

Returns

RevisionType