RevisionFormat

RevisionFormat class

Represents a revision record of information about a formatting change.

class RevisionFormat extends Revision;

Constructors

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

Properties

PropertyTypeDescription
areasCellArea[]Readonly. The range to which this formatting was applied.
styleStyleReadonly. Gets the applied style.
worksheetWorksheetReadonly. Gets the worksheet.
idnumberReadonly. Gets the number of this revision.

Methods

MethodDescription
getAreas()@deprecated. Please use the ‘areas’ property instead. The range to which this formatting was applied.
getStyle()@deprecated. Please use the ‘style’ property instead. Gets the applied style.
isNull()Checks whether the implementation object is null.
getWorksheet()@deprecated. Please use the ‘worksheet’ property instead. Gets the worksheet.
getId()@deprecated. Please use the ‘id’ property instead. Gets the number of this revision.
getType()Gets the type of revision.

constructor(Revision)

Constructs from a parent object convertible to this.

constructor(obj: Revision);

Parameters:

ParameterTypeDescription
objRevisionThe parent object.

areas

Readonly. The range to which this formatting was applied.

areas : CellArea[];

style

Readonly. Gets the applied style.

style : Style;

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.

getAreas()

@deprecated. Please use the ‘areas’ property instead. The range to which this formatting was applied.

getAreas() : CellArea[];

Returns

CellArea[]

getStyle()

@deprecated. Please use the ‘style’ property instead. Gets the applied style.

getStyle() : Style;

Returns

Style

isNull()

Checks whether the implementation object is null.

isNull() : boolean;

getWorksheet()

@deprecated. Please use the ‘worksheet’ property instead. Gets the worksheet.

getWorksheet() : Worksheet;

Returns

Worksheet

getId()

@deprecated. Please use the ‘id’ property instead. Gets the number of this revision.

getId() : number;

Remarks

Zero means this revision does not contains id.

getType()

Gets the type of revision.

getType() : RevisionType;

Returns

RevisionType