WorkbookMetadata class
WorkbookMetadata class
Represents the meta data.
The WorkbookMetadata type exposes the following members:
Constructors
Constructor | Description |
---|---|
init | Create the meta data object. |
init | Create the meta data object. |
Properties
Property | Description |
---|---|
options | Gets the options of the metadata. |
built_in_document_properties | Returns a DocumentProperty collection that represents all the built-in document properties of the spreadsheet. |
custom_document_properties | Returns a DocumentProperty collection that represents all the custom document properties of the spreadsheet. |
Methods
Method | Description |
---|---|
save | Save the modified metadata to the file. |
save | Save the modified metadata to the stream. |
Example
The following example creates a WorkbookMetadata.
from aspose.cells.metadata import MetadataOptions, MetadataType, WorkbookMetadata
options = MetadataOptions(MetadataType.DOCUMENT_PROPERTIES)
meta = WorkbookMetadata("book1.xlsx", options)
meta.custom_document_properties.add("test", "test")
meta.save("book2.xlsx")
See Also
- module
aspose.cells.metadata
- class
DocumentProperty