Aspose::Cells::Metadata::WorkbookMetadata class

WorkbookMetadata class

Represents the meta data.

class WorkbookMetadata

Methods

MethodDescription
GetBuiltInDocumentProperties()Returns a DocumentProperty collection that represents all the built-in document properties of the spreadsheet.
GetCustomDocumentProperties()Returns a DocumentProperty collection that represents all the custom document properties of the spreadsheet.
GetOptions()Gets the options of the metadata.
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const WorkbookMetadata& src)operator=
Save(const U16String& fileName)Save the modified metadata to the file.
Save(const char16_t* fileName)Save the modified metadata to the file.
Save(const Vector <uint8_t>& stream)Save the modified metadata to the stream.
WorkbookMetadata(const U16String& fileName, const MetadataOptions& options)Create the meta data object.
WorkbookMetadata(const char16_t* fileName, const MetadataOptions& options)Create the meta data object.
WorkbookMetadata(const Vector <uint8_t>& stream, const MetadataOptions& options)Create the meta data object.
WorkbookMetadata(WorkbookMetadata_Impl* impl)Constructs from an implementation object.
WorkbookMetadata(const WorkbookMetadata& src)Copy constructor.
~WorkbookMetadata()Destructor.

Fields

FieldDescription
_implThe implementation object.

Examples

Aspose::Cells::Startup();
//The following example creates a WorkbookMetadata.
MetadataOptions options(MetadataType::Document_Properties);
WorkbookMetadata meta(u"book1.xlsx", options);
meta.GetCustomDocumentProperties().Add(u"test", u"test");
meta.Save(u"book2.xlsx");
Aspose::Cells::Cleanup();

See Also