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.

Methods

MethodDescription
getType()Gets the type of revision.
getRow()Gets the row index of the which contains a comment.
getColumn()Gets the column index of the which contains a comment.
getCellName()Gets the name of the cell.
setCellName(string)Gets the name of the cell.
getActionType()Gets the action type of the revision.
isOldComment()Indicates whether it’s an old comment.
getOldLength()Gets Length of the comment text added in this revision.
getNewLength()Gets Length of the comment before this revision was made.
isNull()Checks whether the implementation object is null.
getWorksheet()Gets the worksheet.
getId()Gets the number of this revision.

constructor(Revision)

Constructs from a parent object convertible to this.

constructor(obj: Revision);

Parameters:

ParameterTypeDescription
objRevisionThe parent object.

getType()

Gets the type of revision.

getType() : RevisionType;

Returns

RevisionType

getRow()

Gets the row index of the which contains a comment.

getRow() : number;

getColumn()

Gets the column index of the which contains a comment.

getColumn() : number;

getCellName()

Gets the name of the cell.

getCellName() : string;

setCellName(string)

Gets the name of the cell.

setCellName(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

getActionType()

Gets the action type of the revision.

getActionType() : RevisionActionType;

Returns

RevisionActionType

isOldComment()

Indicates whether it’s an old comment.

isOldComment() : boolean;

getOldLength()

Gets Length of the comment text added in this revision.

getOldLength() : number;

getNewLength()

Gets Length of the comment before this revision was made.

getNewLength() : number;

isNull()

Checks whether the implementation object is null.

isNull() : boolean;

getWorksheet()

Gets the worksheet.

getWorksheet() : Worksheet;

Returns

Worksheet

getId()

Gets the number of this revision.

getId() : number;

Remarks

Zero means this revision does not contains id.