WorkbookMetadata

WorkbookMetadata class

Represents the meta data.

class WorkbookMetadata;

Constructors

ConstructorDescription
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
getOptions()@deprecated. Please use the ‘options’ property instead. Gets the options of the metadata.
getBuiltInDocumentProperties()@deprecated. Please use the ‘builtInDocumentProperties’ property instead. Returns a DocumentProperty collection that represents all the built-in document properties of the spreadsheet.
getCustomDocumentProperties()@deprecated. Please use the ‘customDocumentProperties’ property instead. Returns a DocumentProperty collection that represents all the custom document properties of the spreadsheet.
save(string)Save the modified metadata to the file.
save(Uint8Array)Save the modified metadata to the stream.
isNull()Checks whether the implementation object is null.

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;

getOptions()

@deprecated. Please use the ‘options’ property instead. Gets the options of the metadata.

getOptions() : MetadataOptions;

Returns

MetadataOptions

getBuiltInDocumentProperties()

@deprecated. Please use the ‘builtInDocumentProperties’ property instead. Returns a DocumentProperty collection that represents all the built-in document properties of the spreadsheet.

getBuiltInDocumentProperties() : BuiltInDocumentPropertyCollection;

Returns

BuiltInDocumentPropertyCollection

getCustomDocumentProperties()

@deprecated. Please use the ‘customDocumentProperties’ property instead. Returns a DocumentProperty collection that represents all the custom document properties of the spreadsheet.

getCustomDocumentProperties() : CustomDocumentPropertyCollection;

Returns

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.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;