public class WorkbookMetadata
extends java.lang.Object
Example
The following example creates a WorkbookMetadata.
MetadataOptions options = new MetadataOptions(MetadataType.DOCUMENT_PROPERTIES);
WorkbookMetadata meta = new WorkbookMetadata("book1.xlsx", options);
meta.getCustomDocumentProperties().add("test", "test");
meta.save("book2.xlsx");
| Constructor and Description |
|---|
WorkbookMetadata(java.lang.String fileName,
MetadataOptions options)
Create the meta data object.
|
| Modifier and Type | Method and Description |
|---|---|
BuiltInDocumentPropertyCollection |
getBuiltInDocumentProperties()
Returns a
DocumentProperty collection that represents all the built-in document properties of the spreadsheet. |
CustomDocumentPropertyCollection |
getCustomDocumentProperties()
Returns a
DocumentProperty collection that represents all the custom document properties of the spreadsheet. |
MetadataOptions |
getOptions()
Gets the options of the metadata.
|
void |
save(java.lang.String fileName)
Save the modified metadata to the file.
|
public WorkbookMetadata(java.lang.String fileName,
MetadataOptions options)
fileName - options - public MetadataOptions getOptions()
public BuiltInDocumentPropertyCollection getBuiltInDocumentProperties()
DocumentProperty collection that represents all the built-in document properties of the spreadsheet.public CustomDocumentPropertyCollection getCustomDocumentProperties()
DocumentProperty collection that represents all the custom document properties of the spreadsheet.public void save(java.lang.String fileName)
fileName - The file name.See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.