RevisionLogCollection
RevisionLogCollection class
Represents all revision logs.
class RevisionLogCollection implements Iterable<RevisionLog>;
Properties
| Property | Type | Description |
|---|---|---|
| daysPreservingHistory | number | Gets and sets the number of days the spreadsheet application will keep the change history for this workbook. |
Methods
| Method | Description |
|---|---|
| get(number) | Gets RevisionLog by index. |
| getDaysPreservingHistory() | @deprecated. Please use the ‘daysPreservingHistory’ property instead. Gets and sets the number of days the spreadsheet application will keep the change history for this workbook. |
| setDaysPreservingHistory(number) | @deprecated. Please use the ‘daysPreservingHistory’ property instead. Gets and sets the number of days the spreadsheet application will keep the change history for this workbook. |
| highlightChanges(HighlightChangesOptions) | Highlights changes of shared workbook. |
| getCount() | @deprecated. Please use the ‘count’ property instead. Gets the number of elements contained in. |
| isNull() | Checks whether the implementation object is null. |
[Symbol.iterator](): Iterator<RevisionLog>
Returns an iterator over the items in the collection. Enables use of for...of, spread syntax, and Array.from().
daysPreservingHistory
Gets and sets the number of days the spreadsheet application will keep the change history for this workbook.
daysPreservingHistory : number;
get(number)
Gets RevisionLog by index.
get(index: number) : RevisionLog;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | number | The index. |
Returns
Returns RevisionLog object.
getDaysPreservingHistory()
@deprecated. Please use the ‘daysPreservingHistory’ property instead. Gets and sets the number of days the spreadsheet application will keep the change history for this workbook.
getDaysPreservingHistory() : number;
setDaysPreservingHistory(number)
@deprecated. Please use the ‘daysPreservingHistory’ property instead. Gets and sets the number of days the spreadsheet application will keep the change history for this workbook.
setDaysPreservingHistory(value: number) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | number | The value to set. |
highlightChanges(HighlightChangesOptions)
Highlights changes of shared workbook.
highlightChanges(options: HighlightChangesOptions) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| options | HighlightChangesOptions | Set the options for filtering which changes should be tracked. |
getCount()
@deprecated. Please use the ‘count’ property instead. Gets the number of elements contained in.
getCount() : number;
isNull()
Checks whether the implementation object is null.
isNull() : boolean;