WorkbookMetadata

WorkbookMetadata class

Represents the meta data.

class WorkbookMetadata;

Constructors

NameDescription
constructor(string, MetadataOptions)Create the meta data object.
constructor(Uint8Array, MetadataOptions)Create the meta data object.

Properties

PropertyTypeDescription
optionsMetadataOptionsReadonly. Gets the options of the metadata.
builtInDocumentPropertiesBuiltInDocumentPropertyCollectionReadonly. Returns a DocumentProperty collection that represents all the built-in document properties of the spreadsheet.
customDocumentPropertiesCustomDocumentPropertyCollectionReadonly. Returns a DocumentProperty collection that represents all the custom document properties of the spreadsheet.

Methods

MethodDescription
save(string)Save the modified metadata to the file.
save(Uint8Array)Save the modified metadata to the stream.

constructor(string, MetadataOptions)

Create the meta data object.

constructor(fileName: string, options: MetadataOptions);

Parameters:

ParameterTypeDescription
fileNamestring
optionsMetadataOptions

constructor(Uint8Array, MetadataOptions)

Create the meta data object.

constructor(stream: Uint8Array, options: MetadataOptions);

Parameters:

ParameterTypeDescription
streamUint8Array
optionsMetadataOptions

options

Readonly. Gets the options of the metadata.

options : MetadataOptions;

builtInDocumentProperties

Readonly. Returns a DocumentProperty collection that represents all the built-in document properties of the spreadsheet.

builtInDocumentProperties : BuiltInDocumentPropertyCollection;

customDocumentProperties

Readonly. Returns a DocumentProperty collection that represents all the custom document properties of the spreadsheet.

customDocumentProperties : CustomDocumentPropertyCollection;

save(string)

Save the modified metadata to the file.

save(fileName: string) : void;

Parameters:

ParameterTypeDescription
fileNamestringThe file name.

save(Uint8Array)

Save the modified metadata to the stream.

save(stream: Uint8Array) : void;

Parameters:

ParameterTypeDescription
streamUint8ArrayThe stream.